Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 08-01-2005, 09:41 AM IE Div problem
Average Talker

Posts: 15
Trades: 0
I'm using the following style on div tags in my code:

HTML Code:
.bar	{
background-color:#DDDDDD;
height:4px;

}
This works fine in Firefox, however IE 6.0 renders the div at a height of 15-18px. Is there any way around this?
kidsleep is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-01-2005, 12:30 PM
Novice Talker

Posts: 5
Trades: 0
.bar {
background-color:#DDDDDD;
height:4px;
padding:0;
margin:0;

}

and if that does not work, put a spacer image in the div and set the size to 4px high
__________________
Benjamin Sterling

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bmsterling is offline
Reply With Quote
View Public Profile
 
Old 08-01-2005, 01:09 PM
Novice Talker

Posts: 8
Trades: 0
I suppose 4px high bars shouldn't contain text... put in font-size:0px; and probably line-height too.
There's something in the div, like, incorrectly handled white-space, and it's making it big i suppose.
Ravenn is offline
Reply With Quote
View Public Profile Visit Ravenn's homepage!
 
Old 08-01-2005, 04:36 PM
Skorch1's Avatar
Super Talker

Posts: 115
Location: California
Trades: 0
Did you remember the closing tags for all of your divs? Are they correctly placed <div class="bar"></div><div id="new"></div>.
__________________
Check out my
Please login or register to view this content. Registration is FREE
website!
Skorch1 is offline
Reply With Quote
View Public Profile Visit Skorch1's homepage!
 
Old 08-01-2005, 11:04 PM
Average Talker

Posts: 15
Trades: 0
Thanks for the replies. I got around it by using an image. I did find out it was IE not handling white space well.
kidsleep is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE Div problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36807 seconds with 12 queries