PC Review


Reply
Thread Tools Rate Thread

Border-Right-Length property is not working in a Div

 
 
=?Utf-8?B?d2ViZWRpdG9yLWNvdXRyZQ==?=
Guest
Posts: n/a
 
      7th Jul 2005
I am trying to limit the length of a right-side border for a div, to about
90% (which here is about 170px). All of the other properties work fine (e.g.,
"solid", "width: 1px", color: black, etc.).

But the "length" property does not "take". The length of the border persists
in being 100% of the side of the div.

I have tried these two ways of attributing length in the div that is 200px
tall (neither of these is working):

border-right-length: 160px;
border-right-length: 80%;

Question: Does anyone know how I can get a border in a div to limit to a
percentage length?

 
Reply With Quote
 
 
 
 
Steve Easton
Guest
Posts: n/a
 
      8th Jul 2005
Try:
border-right-width: length 80%;


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer

"webeditor-coutre" <(E-Mail Removed)> wrote in message
news:C78C1516-E455-4659-B87A-(E-Mail Removed)...
> I am trying to limit the length of a right-side border for a div, to about
> 90% (which here is about 170px). All of the other properties work fine (e.g.,
> "solid", "width: 1px", color: black, etc.).
>
> But the "length" property does not "take". The length of the border persists
> in being 100% of the side of the div.
>
> I have tried these two ways of attributing length in the div that is 200px
> tall (neither of these is working):
>
> border-right-length: 160px;
> border-right-length: 80%;
>
> Question: Does anyone know how I can get a border in a div to limit to a
> percentage length?
>



 
Reply With Quote
 
=?Utf-8?B?d2ViZWRpdG9yLWNvdXRyZQ==?=
Guest
Posts: n/a
 
      8th Jul 2005
At first, adding "border-right-width: length 80%;" made the whole border
disappear. Then I moved "border-right-width: length 80%;" line to ABOVE the
"border-right-width: 2px" line in the stylesheet, and simply changing that
order of lines, it made the border appear again, but still at 100%. Maybe it
is just impossible to control a div border length from a stylesheet.

"Steve Easton" wrote:

> Try:
> border-right-width: length 80%;
>
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed..................
> ...............................with a computer
>
> "webeditor-coutre" <(E-Mail Removed)> wrote in message
> news:C78C1516-E455-4659-B87A-(E-Mail Removed)...
> > I am trying to limit the length of a right-side border for a div, to about
> > 90% (which here is about 170px). All of the other properties work fine (e.g.,
> > "solid", "width: 1px", color: black, etc.).
> >
> > But the "length" property does not "take". The length of the border persists
> > in being 100% of the side of the div.
> >
> > I have tried these two ways of attributing length in the div that is 200px
> > tall (neither of these is working):
> >
> > border-right-length: 160px;
> > border-right-length: 80%;
> >
> > Question: Does anyone know how I can get a border in a div to limit to a
> > percentage length?
> >

>
>
>

 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      9th Jul 2005
Div is a container (element) which controls the size (length/width) of the container
Border is an property of that container (separately addressable for all 4 sides)
Length is not an attribute of border since the length is controlled by the container size

Only way to do what you want is to nest 2 divs w/ different borders: one div at 80 % of outer div (100%)

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"webeditor-coutre" <(E-Mail Removed)> wrote in message
news:AC198AB8-0AB4-486D-97DC-(E-Mail Removed)...
| At first, adding "border-right-width: length 80%;" made the whole border
| disappear. Then I moved "border-right-width: length 80%;" line to ABOVE the
| "border-right-width: 2px" line in the stylesheet, and simply changing that
| order of lines, it made the border appear again, but still at 100%. Maybe it
| is just impossible to control a div border length from a stylesheet.
|
| "Steve Easton" wrote:
|
| > Try:
| > border-right-width: length 80%;
| >
| >
| > --
| > Steve Easton
| > Microsoft MVP FrontPage
| > 95isalive
| > This site is best viewed..................
| > ...............................with a computer
| >
| > "webeditor-coutre" <(E-Mail Removed)> wrote in message
| > news:C78C1516-E455-4659-B87A-(E-Mail Removed)...
| > > I am trying to limit the length of a right-side border for a div, to about
| > > 90% (which here is about 170px). All of the other properties work fine (e.g.,
| > > "solid", "width: 1px", color: black, etc.).
| > >
| > > But the "length" property does not "take". The length of the border persists
| > > in being 100% of the side of the div.
| > >
| > > I have tried these two ways of attributing length in the div that is 200px
| > > tall (neither of these is working):
| > >
| > > border-right-length: 160px;
| > > border-right-length: 80%;
| > >
| > > Question: Does anyone know how I can get a border in a div to limit to a
| > > percentage length?
| > >
| >
| >
| >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table top and bottm border lines length issue in MS Word Allirajan Microsoft Word Document Management 1 29th Aug 2009 03:35 PM
How do I adjust the length of a bottom border so I can type on it Susan Microsoft Word Document Management 1 12th Jan 2008 11:02 PM
Picture Property Border Ron Microsoft Frontpage 4 1st Feb 2005 11:14 AM
Body of page appears in Top Border, Left Border and Bottom Border (there is no right border) Michael Edwards Microsoft Frontpage 1 14th Oct 2004 09:46 AM
Allow Zero length property not working when using create table sql statement EK Microsoft Access Database Table Design 2 16th Aug 2004 02:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:12 PM.