• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

css float issue

mrtheshaggy

[H]ard|Gawd
Joined
Jun 28, 2003
Messages
1,209
Heya,

I just changed the menu on my website. The problem is that it won't align to center under the logo. Inside the css/style it's float property is set to 'left' (and the ie hack mid way down). Setting it to 'none' or 'center' messus up the entire menu. Any clues on what to do?

Example can be found here...

http://www.vanguarddefiant.com/downloads.php

Sorry, but have to source it, way too much code to be posted.

Also, if you have any ideas for making it look better, by all means, I'd love to hear them!

Thanks
 
looks like it works to me. but you can always use
width: 100%;

and

margin:auto;

should work
 
Yeah, it looks like it's working here too (under Firefox 2). Just a reminder, there is no float:center. It can only be left or right.
 
Hello mrtheshaggy, I don't mean to sound critical (I know you didn't really ask for a review) but there are lots of problems with that page - namely no DocType or charcter encoding, the use of tables and unecessary hacks (see HollyHack). See the links in my sig below.

For a start on tableless layout have a look at http://www.nopeople.com/defiant/ It validates, except for the odd code in the menu.

That menu would be easy to build with CSS only, if you would like to get rid of that js. Have a look at how a span menu works here.

=========================

And... what I always say:
"write it for FireFox then hack it for IE."



Use the right DocType
Validate your markup
Validate your CSS
Why validating is good
Why tables are bad
 
Back
Top