HighDots Forums  

div border not stretching

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss div border not stretching in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ilyasdhin@googlemail.com
 
Posts: n/a

Default div border not stretching - 04-15-2009 , 01:19 PM






Hi all

This is the url:http://www.igsoftwaresolutions.co.uk/htmlissue1.html

I would like the content div to have a border on the right that runs
all the way down from top to bottom. At the moment it just stops about
a thrid of the way

Can anyone help or advise how I can do this?

Reply With Quote
  #2  
Old   
Gus Richter
 
Posts: n/a

Default Re: div border not stretching - 04-15-2009 , 02:56 PM






ilyasdhin (AT) googlemail (DOT) com wrote:
Quote:
Hi all

This is the url:http://www.igsoftwaresolutions.co.uk/htmlissue1.html

I would like the content div to have a border on the right that runs
all the way down from top to bottom. At the moment it just stops about
a thrid of the way

Can anyone help or advise how I can do this?

I'm sorry I wasn't able to explain to you properly as to how things work
over in c.i.w.a.html. Perhaps try reading again what I wrote. So, trying
to achieve the border the full vertical length is not possible as you
see in your example. The reason is as I explained.

The way to achieve the vertical (border) line is once again through a
deception. To do this, your method is not suitable, so the first thing
to do is to (instead of floating both columns) float left only the left
column and allow the right to flow to the right with a left margin for
the width of the left column. With this revised method in place, create
a new #rightWrapper containing the #rightBar. Give the #rightWrapper
the same background color as that of the left column (in your case,
white) and give it the left border. Then finally give #rightBar a left
margin of 10px.

--
Gus


Reply With Quote
  #3  
Old   
dorayme
 
Posts: n/a

Default Re: div border not stretching - 04-15-2009 , 06:05 PM



In article
<9cd970a4-c3bb-45b6-ac87-9da85e3ecb7d (AT) 3g2000yqk (DOT) googlegroups.com>,
"ilyasdhin (AT) googlemail (DOT) com" <ilyasdhin (AT) googlemail (DOT) com> wrote:

Quote:
Hi all

This is the url:http://www.igsoftwaresolutions.co.uk/htmlissue1.html

I would like the content div to have a border on the right that runs
all the way down from top to bottom. At the moment it just stops about
a thrid of the way

Can anyone help or advise how I can do this?
Your border does not extend because the content of that element stops.
Gus gives you one way. Here is another work around:

#contentContainer {background-color:white; background:
url(images/border_1px.gif) repeat-y 260px 0}

You need to make an image (1px x 1px will do but probably better to make
it more pxs high so the browsers does not work so hard).

--
dorayme


Reply With Quote
  #4  
Old   
ilyasdhin@googlemail.com
 
Posts: n/a

Default Re: div border not stretching - 04-16-2009 , 04:32 AM



On Apr 15, 11:05*pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote:
Quote:
In article
9cd970a4-c3bb-45b6-ac87-9da85e3ec... (AT) 3g2000yqk (DOT) googlegroups.com>,

*"ilyasd... (AT) googlemail (DOT) com" <ilyasd... (AT) googlemail (DOT) com> wrote:
Hi all

This is the url:http://www.igsoftwaresolutions.co.uk/htmlissue1.html

I would like the content div to have a border on the right that runs
all the way down from top to bottom. At the moment it just stops about
a thrid of the way

Can anyone help or advise how I can do this?

Your border does not extend because the content of that element stops.
Gus gives you one way. Here is another work around:

#contentContainer {background-color:white; background:
url(images/border_1px.gif) repeat-y 260px 0}

You need to make an image (1px x 1px will do but probably better to make
it more pxs high so the browsers does not work so hard).

--
dorayme
That did the trick.

Thanks every so much


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.