Trying to Learn CSS - Recurring Gap Problem.

This is a discussion on "Trying to Learn CSS - Recurring Gap Problem." within the Web Page Design section. This forum, and the thread "Trying to Learn CSS - Recurring Gap Problem. 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 Nov 29th, 2006, 01:14
New Member
Join Date: May 2006
Location: northern california
Age: 23
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Trying to Learn CSS - Recurring Gap Problem.

Hi all,

I have been learning CSS for a little while now and have run into many problems. Most of them I have been able to resolve with a little research. This specific issue has come up a couple of times now and I can't seem to figure it out. I have been making practice pages for the hell of it, and one in particular has gaps between the divs in firefox, which I really don't want. I've uploaded the page, you can check it out at http://simpleword.net/frustrated/bluedude.html . The two problem areas are the darker gray area on the left, and the bottom div with the copyright info. This problem does not occur in IE. I've embedded the css so you can check it out. Any help would be greatly appreciated.

Thanks,

Erik.
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 Nov 29th, 2006, 01:23
New Member
Join Date: May 2006
Location: northern california
Age: 23
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trying to Learn CSS - Recurring Gap Problem.

Haha, figured it out! I realized that <p> has an automatically applied margin, I set it to 0 and everything worked out fine! Woohoo.
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 Nov 30th, 2006, 01:43
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trying to Learn CSS - Recurring Gap Problem.

Yeah. Some people (not me, however) like to put this at the top of their CSS file:

Code: Select all
* {
    margin: 0;
    padding: 0;
}
Sometimes I don't need to be pixel perfect with things. You may find it useful, though.
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
css, div, gap, margin

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
what should I learn for this? pck76 Starting Out 10 Oct 19th, 2007 03:03
want to learn cressy JavaScript Forum 0 Jun 24th, 2007 17:16
what do I need to learn? marie27 Starting Out 5 Apr 28th, 2007 05:29
New To PHP - Want To Learn Freelancer PHP Forum 8 Nov 16th, 2006 22:40
How can I learn CSS??? courtjester Web Page Design 5 Sep 15th, 2003 08:12


All times are GMT. The time now is 08:20.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42