|
||||||
| JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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 |
| Sponsored Links |
|
|
|
|||
|
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 |
|
|||
|
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 |
|
|||||
|
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.
|
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |
| Xav | ........ | 1323.18 |
| MeTh0Dz|Reb0rn | ........ | 1053.7 |
| morefood2001 | ........ | 879.43 |
| John | ........ | 877.37 |
| marwex89 | ........ | 869.98 |
| WingedPanther | ........ | 837.78 |
| Brandon W | ........ | 749.07 |
| chili5 | ........ | 310.39 |
| Steve.L | ........ | 241.84 |
| dcs | ........ | 216.02 |
Goal: 100,000 Posts
Complete: 82%