Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-14-2010, 11:38 PM   PM User | #1
nickburrett
New Coder

 
Join Date: Jun 2009
Posts: 63
Thanks: 22
Thanked 0 Times in 0 Posts
nickburrett is an unknown quantity at this point
Unwanted margin on css float

Hello

I am putting together a new website and have a problem with an unwanted margin on a css float. I can't seem to get rid of the margin even if I add margin: 0px to the class.

http://www.discos.co.uk/temp/index.html

The margin I am trying to delete is around the "What We Do", "Get a Quote", "Frequently Asked Questions", and "Coverage Area" buttons.

Any help greatly appreciated.
nickburrett is offline   Reply With Quote
Old 11-14-2010, 11:52 PM   PM User | #2
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,155
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
You're using inline code with strict doctype, try converting that to css. That will give you more control and be consistent with the doctype.
DrDOS is offline   Reply With Quote
Old 11-14-2010, 11:57 PM   PM User | #3
nickburrett
New Coder

 
Join Date: Jun 2009
Posts: 63
Thanks: 22
Thanked 0 Times in 0 Posts
nickburrett is an unknown quantity at this point
Hi There

That doesn't seem to have made any difference.

Regards
Nick
nickburrett is offline   Reply With Quote
Old 11-15-2010, 01:28 AM   PM User | #4
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
hmmm have you tried just adding a global style rule for margins and paddings?


Code:
*{margin: 0;
padding:0;}
teedoff is offline   Reply With Quote
Old 11-15-2010, 02:03 AM   PM User | #5
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello nickburrett,
Giving it a height cleans it up in FF.

Add this to your CSS - .topleft, .topright {height: 136px;}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
nickburrett (11-15-2010)
Old 11-15-2010, 12:53 PM   PM User | #6
nickburrett
New Coder

 
Join Date: Jun 2009
Posts: 63
Thanks: 22
Thanked 0 Times in 0 Posts
nickburrett is an unknown quantity at this point
Thank you!

The height value sorted it out!

Sometimes things are so simple you just can't work them out!
nickburrett is offline   Reply With Quote
Reply

Bookmarks

Tags
css, float

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:17 AM.


Advertisement
Log in to turn off these ads.