Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > JavaScript and CSS

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-28-2008, 04:37 PM
twalters84 twalters84 is offline
Learning Programmer
 
Join Date: Oct 2007
Posts: 56
Credits: 0
Rep Power: 4
twalters84 is on a distinguished road
Default Horizontal Line in IE6

Greetings,

I am trying to create a horizontal line using CSS (without an image). The <hr> element is not really as thick as I want it. Thus, I am trying something like this:

div.hr
{
height: 2px;
background: #000000;
margin: 5px 0px 5px 0px;
padding: 0px 0px 0px 0px;
}

This looks fine in IE7, Firefox, etc.

However, in IE6, the line looks like it is about 20 pixels in height.

Does anybody know the proper adjustment I need to make so IE6 will look more like IE7?

Thanks in advance!

Sincerely,
Travis Walters
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-29-2008, 03:16 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 7,452
Last Blog:
Web slideshow in JavaS...
Credits: 1,333
Rep Power: 61
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: Horizontal Line in IE6

Internet Explorer has always been bad at interpreting web pages. IE 7 and Firefox 2 are used by about 97% of users at the last count, so you should be OK.
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-29-2008, 03:29 PM
twalters84 twalters84 is offline
Learning Programmer
 
Join Date: Oct 2007
Posts: 56
Credits: 0
Rep Power: 4
twalters84 is on a distinguished road
Default Re: Horizontal Line in IE6

Hey there,

I am concerned about this problem.

Browser Statistics

According to the website above, during march 2008, 30.1% of the population is still using IE6.

If anybody has a solution, please feel free to share

Thanks again.

Sincerely,
Travis Walters
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-29-2008, 03:38 PM
twalters84 twalters84 is offline
Learning Programmer
 
Join Date: Oct 2007
Posts: 56
Credits: 0
Rep Power: 4
twalters84 is on a distinguished road
Default Re: Horizontal Line in IE6

Hello again,

Here is the solution:

"As for why this isn't working, it's because IE is saving enough room for text inside this div. Either set the text size to 1px or turn hide the overflow."

div.hr
{
height: 2px;
background: #000000;
margin: 5px 0px 5px 0px;
padding: 0px 0px 0px 0px;
font-size: 1px;
}

Maybe this will help somebody in the future. Thanks again.

Sincerely,
Travis Walters
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-02-2008, 11:27 AM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 7,452
Last Blog:
Web slideshow in JavaS...
Credits: 1,333
Rep Power: 61
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: Horizontal Line in IE6

Ah - maybe the div element isn't the best element to use. There's a website where you type in the site, and it displays it as it would appear within different browsers, at different resolutions. I forgot the name, but I'll post it if I remember.
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
VB6.0:Tutorial, Command Line TcM VB Tutorials 9 08-25-2008 12:19 PM
Moving a line of cin.getline down to the next available line (C++ console)? mholt C and C++ 5 04-20-2008 02:12 PM
Lot's of errors Jaan PHP Forum 11 03-08-2008 12:46 PM
HTML Basic Formatting clookid Tutorials 14 03-06-2007 03:10 PM
Next Line and line lengths zee Java Help 3 02-25-2007 01:31 AM


All times are GMT -5. The time now is 07:29 PM.

Contest Stats

Xav ........ 1333.07
MeTh0Dz|Reb0rn ........ 1055.7
John ........ 881.37
morefood2001 ........ 879.43
marwex89 ........ 869.98
WingedPanther ........ 851.68
Brandon W ........ 757.44
chili5 ........ 312.39
Steve.L ........ 247.05
dcs ........ 219.87

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads