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.

CSS Forum


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



Reply
Old 08-02-2006, 06:27 AM 100% height DIV
sameer's Avatar
Super Talker

Posts: 103
Name: Sameer
Location: India
Trades: 0
i am trying to create vertical line with a DIV
code is

Code:
.vLine{
width:1px;
height:200px;
float:left;
overflow:hidden;
background-color:#818181;
position:relative;
}
now the problem is
i want it to have full height instead of just 200px
the content of the container div in which the vLine is placed is having variable height.

is there any way around it?
__________________

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
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
sameer is offline
Reply With Quote
View Public Profile Visit sameer's homepage!
 
 
Register now for full access!
Old 08-02-2006, 07:41 AM Re: 100% height DIV
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
height: 100%;

?
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 08-02-2006, 09:13 AM Re: 100% height DIV
King Spam Talker

Posts: 1,186
Location: Manchester, UK
Trades: 0
Could you put a border-left (or border-right) 1 pixel thick on the container div?
gringo is offline
Reply With Quote
View Public Profile Visit gringo's homepage!
 
Old 08-02-2006, 09:22 AM Re: 100% height DIV
sameer's Avatar
Super Talker

Posts: 103
Name: Sameer
Location: India
Trades: 0
there are 4 columns ,
and i am trying to put a vertical line between them
the height of columns differ,
so if i put left/right border, around each div, the border will have height of the columns, which is not same for all columns.
so the border is not going to work for sure

is there any other solution?
__________________

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
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
sameer is offline
Reply With Quote
View Public Profile Visit sameer's homepage!
 
Old 08-02-2006, 09:51 AM Re: 100% height DIV
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
Post your HTML code
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 08-02-2006, 10:01 AM Re: 100% height DIV
sameer's Avatar
Super Talker

Posts: 103
Name: Sameer
Location: India
Trades: 0
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
    <div id="base">
        
        <div id="main">
            <div class="sideBox">
                <div class="verticalMenu"><img src="images/ar3.gif" class="imgDownArrow"><a href="#">link</a></div>
                <div class="verticalMenu"><img src="images/ar3.gif" class="imgDownArrow"><a href="#">linkfsd</a></div>
                <div class="verticalMenu"><img src="images/ar3.gif" class="imgDownArrow"><a href="#">linkdsfg sdds</a></div>
                <div class="verticalMenu"><img src="images/ar3.gif" class="imgDownArrow"><a href="#">linkdfds fg</a></div>
                <div class="verticalMenu"><img src="images/ar3.gif" class="imgDownArrow"><a href="#">lindsfdsfds</a></div>
            </div>
            <div class="vLine" height="100%"></div>
            <div class="box">
                <div class="infoBox"></div>
                <div class="infoBox"></div>
            </div>
            <div class="vLine"></div>            
            <div class="box">
                <div class="infoBox"></div>
                <div class="infoBox"></div>
                <div class="infoBox"></div>
            </div>
            <div class="vLine"></div>
            <div class="sideBox">
                <div class="sBox"></div>
            </div>        
        </div>
        
    </div>
</body>
</html>
i want all the three vLine to have height of the content
i will also like to know any other solution to display such lines
__________________

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
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
sameer is offline
Reply With Quote
View Public Profile Visit sameer's homepage!
 
Old 08-02-2006, 04:18 PM Re: 100% height DIV
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
An alternative solution is called "faux columns". You would use a background image on your content container that already has the vertical lines in it that you want. It will APPEAR that you have 4 columns will varying content and the background will stretch based on the longest column if you set it up right.

There are several methods for column layouts here:
Front Page - css-discuss
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-03-2006, 01:33 AM Re: 100% height DIV
sameer's Avatar
Super Talker

Posts: 103
Name: Sameer
Location: India
Trades: 0
thanks all,
i think fauxed columns will work as a solution,
thanks LadynRed.
__________________

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
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
sameer is offline
Reply With Quote
View Public Profile Visit sameer's homepage!
 
Old 08-03-2006, 02:13 AM Re: 100% height DIV
Average Talker

Posts: 29
Name: David Davis
Trades: 0
Also, something I noticed about height:100% attributes, they work fine in FF, but IE see's 100% not as in relation to your viewport, but as in relation to the elements of your page. In other words, if your page extends halfway down the viewport, then 100% will only be halfway. So in FF if your viewport is 450px high, then 100% would be equal to 450px. In IE, 100% starts at the top of your viewport and ends where the body of the html ends. I don't know if there is a way to find out what the viewport size is on each visitors browser, but it would sure be handy in this case.
jumpenjuhosapha is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to 100% height DIV
 

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.35627 seconds with 12 queries