vForums Support > Programming & Coding :: Code Requests & Support :: > Menu Buttons (again)

Menu Buttons (again) - Posted By Sven (sven) on 10th Aug 08 at 9:26am
I use this code:

http://support.virtualforums.co.uk/board/database/action/view_topic/topic/3401

To try and put my menu in my banner cause I'm having a bit of difficulty getting my menu done properly and this looks to be the easiest way to do it.

As a result though, even if i put 1000 into the spot to move my menu around, the banner still results in being on 15pixels high, I've got the banner height set at 140 which is the height of the banner.

It's annoying me >_>. Halp someone {Tongue Out}

Re: Menu Buttons - Posted By Marc (cr0w) on 10th Aug 08 at 7:07pm
Have you tried the CSS alternative that DregondRahl posted in the same thread? {Smile}

Re: Menu Buttons - Posted By Sven (sven) on 10th Aug 08 at 10:03pm
Yea, apart from the fact that it just showed up as plain text from there... Clearly was doing something wrong lol.

Re: Menu Buttons - Posted By Marc (cr0w) on 10th Aug 08 at 11:37pm
Ahh, I see that Dreggie didn't see the need to include the tags. {Tongue Out}

Give this a try:

Code:
 
  1. <style type="text/css">
  2. <!--
  3. #welcome_table .menu font {
  4.      position: absolute;
  5.      top: 0;
  6.      left: 100px;
  7. }
  8. //-->
  9. </style>
 

Re: Menu Buttons - Posted By Sven (sven) on 11th Aug 08 at 1:14am
ty. fixed that. You might want to post that in the thread. To use the CSS one {Tongue Out}

Re: Menu Buttons - Posted By Sven (sven) on 11th Aug 08 at 8:15am
Double Post:

I have another issue. Using the CSS code, I put it in px and because of that it screwed up using different resolutions.

However, I changed it to %s, causing a HUGE problem. In FF, it's how I want it - then I open up a tab and it moves, view it in IE and the same problem occurs, though, because it has a different window size to FF, it's off to begin with!

Anyway to fix this?

Re: Menu Buttons (again) - Posted By Alex Bailey (system) on 11th Aug 08 at 10:16am
 
ty. fixed that. You might want to post that in the thread. To use the CSS one {Tongue Out}


I thought you knew how to code css {Tongue Out} and ya didn't even add the tags {Tongue Out}

Re: Menu Buttons (again) - Posted By Sven (sven) on 11th Aug 08 at 11:31am
Not CSS {Tongue Out}

HTML and PHP (learning MySQL at the moment, stupid thing), though, I must say. Coding for a forum is very different. I've scavenged around looking for how it was done with the skin, and can't find squat for it - probably cause it's mainly done in JS, which I can't even begin to comprehend lol.

Re: Menu Buttons (again) - Posted By Marc (cr0w) on 11th Aug 08 at 2:31pm
 
Not CSS {Tongue Out}

HTML and PHP (learning MySQL at the moment, stupid thing), though, I must say. Coding for a forum is very different. I've scavenged around looking for how it was done with the skin, and can't find squat for it - probably cause it's mainly done in JS, which I can't even begin to comprehend lol.


The reason for the error is because it's position is being set at absolute. Give this a try instead:

Code:
 
  1. <style type="text/css">
  2. <!--
  3. #welcome_table .menu font {
  4.      position: relative;
  5.      top: -50px;
  6.      left: 0px;
  7. }
  8. //-->
  9. </style>
 


This will position the menu buttons relative to where the original cell is, hopefully fixing the resolution error. {Smile}

Re: Menu Buttons (again) - Posted By Sven (sven) on 11th Aug 08 at 9:42pm
Kind of worked, still slightly off in IE - but, I should be able to fix it.