More troubles with Firefox

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 6th, 2006, 17:47
Junior Member
Join Date: Mar 2006
Age: 43
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
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!!!!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 6th, 2006, 18:09
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 6th, 2006, 18:11
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
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".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 6th, 2006, 18:13
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: More troubles with Firefox

Quote:
Originally Posted by masonbarge
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".
Huh? I've never had to do either of those two things to get 'no margins'.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 7th, 2006, 08:22
Junior Member
Join Date: Mar 2006
Age: 43
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jun 7th, 2006, 09:09
minute44's Avatar
Most Reputable Member

SuperMember
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,351
Blog Entries: 3
Thanks: 0
Thanked 1 Time in 1 Post
Re: More troubles with Firefox

Quote:
Originally Posted by boscomilo
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.
A good rule to follow here is:

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jun 7th, 2006, 11:38
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jun 7th, 2006, 12:29
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: More troubles with Firefox

Quote:
Originally Posted by boscomilo
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.
Try removing the red comma I highlighted in your quote.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jun 7th, 2006, 14:12
Junior Member
Join Date: Mar 2006
Age: 43
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Re: More troubles with Firefox

Doh! The comma!
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jun 7th, 2006, 21:03
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: More troubles with Firefox

Quote:
Originally Posted by herkalees
Try removing the red comma I highlighted in your quote.
Always a good idea to validate the css when there's a problem. It can save a lot of eyestrain
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jun 9th, 2006, 14:16
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: More troubles with Firefox

Quote:
Originally Posted by masonbarge
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.
I agree with Herkalees, you should never have to use negative margins to correct something.

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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jun 10th, 2006, 11:25
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Jun 10th, 2006, 14:38
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
troubles, firefox

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 23:33.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved