This is a discussion on "More troubles with Firefox" within the Web Page Design section. This forum, and the thread "More troubles with Firefox are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
More troubles with Firefox
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
More troubles with Firefox
I can't work out how to position <li> menu buttons so that they don't indent in Firefox. It works fine in IE. Also, my CSS for h1, h2, h3, h4 isn't picked up by Firefox and gives me defaults.
Work in progress: http://www.usdmanciano.com/test.html Also, I've ended up having to use a table for positioning because of trouble with Firefox. Help!!!!!!!!!! |
|
|
|
#2
|
||||
|
||||
|
Re: More troubles with Firefox
ul, li {margin-left:0; padding-left:0; list-style:none;}
That'll do ya in every browser. Last edited by herkalees; Jun 6th, 2006 at 18:13. |
|
#3
|
||||
|
||||
|
Re: More troubles with Firefox
Yeah it's a pain until you figure out to use negative margins on the <li> elements. Also be sure to set style-position to "outside".
|
|
#4
|
||||
|
||||
|
Re: More troubles with Firefox
Quote:
|
|
#5
|
|||
|
|||
|
Re: More troubles with Firefox
Thanks Herkalees.
It worked. I tried the negative margins previously. It worked in Firefox but messed up IE. Any thoughts on why my h1, h2, etc don't work in Firefox. The CSS I've written is: h1, { background-color: #000; font-family: Arial, Helvetica, sans-serif; color: #fff; font-size: 20px; } But I get default headings in Firefox. |
|
#6
|
||||
|
||||
|
Re: More troubles with Firefox
Quote:
Tell the browser everything it needs to know. Never leave it to assume defaults cos they will mess you up when you least expect it.
Last Blog Entry: Giving them what they paid for: A (sort of) Follow-up (Today)
|
|
#7
|
||||
|
||||
|
Re: More troubles with Firefox
It happens in Firefox sometimes when you have a vertical list column floated to either side. It can push the whole list out of the container.
When I saw it, it was in the context of a browser-sniffer with second stylesheet, so I just put in negative margins on the list items. You might also try floating the <li>'s in the opposite direction of the list, but I don't know if this will take out the built-in <li> indent, or not. |
|
#8
|
||||
|
||||
|
Re: More troubles with Firefox
Quote:
|
|
#9
|
|||
|
|||
|
Re: More troubles with Firefox
Doh! The comma!
Thanks. |
|
#10
|
||||
|
||||
|
Re: More troubles with Firefox
Quote:
|
|
#11
|
|||
|
|||
|
Re: More troubles with Firefox
Quote:
Now using them intentionaly as part of the style - fine, but not to correct. If you have to use it then there are issues elsewhere in the code even if things line up correctly and validate.
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
|
|
#12
|
||||
|
||||
|
Re: More troubles with Firefox
Yes, I agree too that you shouldn't "have" to use negative margins. When I have used them, they have eventually come out as the code improved (IIRC though, it actually is not a bad method for some setups, I think maybe three-column liquid). But I'm not convinced you can always correct list-indenting cross-browser without them.
I'm working on a three-high six-wide set of css buttons. I'll work some today on trying to get them to work without neg. margins and report back, maybe you guys can spot a mistake. |
|
#13
|
||||
|
||||
|
Re: More troubles with Firefox
Awesome. I still haven't figured out how it gets screwed up -- possibly an inheritance problem? -- but I've got a 6x3 bank of buttons working in all available browsers (IE7, Opera, FF, Netscape) with no neg. margins.
Thanks Herk, afaik you are 100% right. This simple tip was a big help. |
![]() |
| Tags |
| troubles, firefox |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| having some troubles | luv2php | PHP Forum | 7 | May 26th, 2008 05:40 |
| IE Troubles | MotorManiac | Web Page Design | 0 | May 11th, 2008 00:01 |
| PHP Troubles | Maverick25r | PHP Forum | 1 | Sep 1st, 2006 03:22 |
| Firefox troubles with osx and and pc | Maverick25r | Web Page Design | 3 | Aug 17th, 2006 12:46 |
| IE troubles | Maverick25r | Web Page Design | 2 | Jul 24th, 2006 23:34 |