473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Vertical Line Different Sizes In Different Browsers

1
I am trying to make "vertical rule" on my webpage by repeating a 1x1 pixel image on the y-axis. It works perfectly in FF and Chrome(haven't tested in safari) but fails miserably in IE. In FF it spans the entire div 95% as specified in the css, but in IE it goes down about half an inch and stops.

Heres the link to show visually what is happening.

Here is my css for the "vertical rule"

Expand|Select|Wrap|Line Numbers
  1. div#vr { 
  2. height: 95%; 
  3. background-image: url('images/hr.jpg'); 
  4. background-repeat: repeat-y; 
  5. padding-top: 5px; 
  6. padding-left: 5px; 
  7. padding-right: 5px; 
  8. position: absolute; 
  9. }
Any ideas?

Thanks
Oct 20 '08 #1
3 2047
drhowarddrfine
7,435 Expert 4TB
Just for laughs, try removing all the spaces before the doctype and see if that fixes it.
Oct 20 '08 #2
drhowarddrfine
7,435 Expert 4TB
If the above doesn't do anything, IE is so bad with floats that it could be the combination of the floats and positioning that's throwing this off but I can't look at it right now.
Oct 20 '08 #3
David Laakso
397 Expert 256MB
Pages that rely on absolute positioning structure are often problematic for a lot of reasons. While float based layouts can have issues too, they are a better choice (with small absolute positioned elements sometimes used within them) -- until such time as a better method may come along in the future.

If you are up for it, your current layout is easily constructed using floats [1] and a faux column [2] for the vertical rule. No absolute positioning needed at all.

[1] faux column

[2] a layout that may meet your need (adjust the widths to yours and delete #extra division.
Oct 20 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Geoff Cox | last post by:
Hello, I publish some web pages using large fonts and would like to give the user the opportunity to print the pages using a smaller font. I believe that this is possible using different style...
8
by: abracad | last post by:
Hi Is it possible to vertically align an image in the middle of a DIV of fixed height?
13
by: Dave | last post by:
Hi, what Property and Values are used to space out further from one another the items in a list (assuming it's possible)? The default presentation is a bit "bunched up" for me. Thanks, Dave
2
by: John | last post by:
Now and again I like to start a sentence with a large capital, maybe in a different font. This upsets the line spacing and I've failed to find any css that will effectively crop the capital letter...
4
by: Rob T. | last post by:
I am using a div tag to make an element that contains some text. I have specified overflow: auto; in my stylesheet. If I use font-size/line-height to specify the font information I get a vertical...
2
by: P2P | last post by:
Hi I am wondering if someone know of a free cross-browsers vertical scrolling script that - is cross cross-browsers - will call the scrolling content from an external html page or from a...
5
by: Markus Ernst | last post by:
Hello This is a test example: http://www.markusernst.ch/anthracite/ http://www.markusernst.ch/anthracite/living_divani.html After googling and experimenting for several hours, I ended up...
3
by: Liam Gibbs | last post by:
Hello everyone, I'm having trouble figuring out a problem with a page I'm looking at: http://www.international.gc.ca/fac/polar-polaire/final4.aspx?lang=en. Quite obviously, my problem is that...
40
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.