Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gap Between Divs Problem

Status
Not open for further replies.

iaresean

Programmer
Mar 24, 2003
570
ZA
Hi All;

I am looking for an HTML/CSS genius to help me out on this one. I am practising layout of html pages but for some reason I am getting gaps between 2 of my divs. The one gap is 2px in height and the other is 1px in height.

I have posted the page temporarily in this location:

Here is the link for the css script:

Could someone out there please help me out on this one? I would be greatly appreciative! I have been stumped for hours and hours on this.

Sean. [peace]
 
Sorry, I should have specified that this an IE problem. It works 100% in FireFox.

Sean. [peace]
 
I guess it's an IE specific probl;em as I don't see it in FireFox or Opera. As it looks fine in these it may be a padding or margin issue. Try starting your stylesheet with:
Code:
        * {
		margin:0;
		padding:0;
		}
Then at least you will be on a level playing field from the start.



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Good tip, certainly one I will take forward to the future, but it didn't solve my problem in this case. :-(



Sean. [peace]
 
Anyone got an idea or perhaps a name for this bug?

I am getting desperate. :-(

Sean. [peace]
 
I SOLVED IT

Need to set an img class in css with def of:
Code:
border:0px;
display:block;
position:relative;
float:left;

Sean. [peace]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top