REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
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.
Register Here
Forum Rules
HTML Forum
You are currently viewing our HTML Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
HTML Forum
>
IE Div problem
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
FREE Outsourcing eBook!
Go
Link Back
Thread Tools
Search this Thread
IE Div problem
08-01-2005, 09:41 AM
#
1
(
permalink
)
IE Div problem
kidsleep
Average Talker
Posts: 15
Trades:
0
Talkupation:
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?
Register
now for full access!
08-01-2005, 12:30 PM
#
2
(
permalink
)
bmsterling
Novice Talker
Posts: 5
Trades:
0
Talkupation:
.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
08-01-2005, 01:09 PM
#
3
(
permalink
)
Ravenn
Novice Talker
Posts: 8
Trades:
0
Talkupation:
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.
08-01-2005, 04:36 PM
#
4
(
permalink
)
Skorch1
Super Talker
Posts: 115
Location: California
Trades:
0
Talkupation:
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!
08-01-2005, 11:04 PM
#
5
(
permalink
)
kidsleep
Average Talker
Posts: 15
Trades:
0
Talkupation:
Thanks for the replies. I got around it by using an image. I did find out it was IE not handling white space well.
« Reply to
IE Div problem
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
HTML Forum
>
IE Div problem
Thread Tools
Search this Thread
Show Printable Version
Email this Page
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
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.36807
seconds with
12
queries