Jump to content

Recommended Posts

Posted

I am researching with out success, to find a CSS text attribute that produces a border, a single straight line, at the end of each line that I can prescribe a color. I don?t see an attribute that allows this at the W3 site. Does anyone know if this is possible?

Thanks!

 

WBR

Posted

In my test definition of

tag, I placed the following code, to exagerate the effect, but nothing was visible.

    
border-left: 5px;
border-left-color: rgb(255,0,0);
border-right: 5px;
border-right-color: rgb(0,0,255);

Should this not place a border on both sides of the text?

Posted

i don't know if my answer is correct but you can see what i did to my design: LOOK it the bold and underline part maybe this is what you a looking for.

 

#sidebar2 h2 {

background: url('') no-repeat left 50%;

background-color: #FFFFFF;

height: 41px;

width: 230px;

border-bottom: 4px solid #B8B8B8;

font-size: 15px;

)

Posted
In my test definition of

tag, I placed the following code, to exagerate the effect, but nothing was visible.

    
border-left: 5px;
border-left-color: rgb(255,0,0);
border-right: 5px;
border-right-color: rgb(0,0,255);

Should this not place a border on both sides of the text?

 

I think for this to work, you would need to add "border-style: solid;"

 

I usually use the shorthand for it:

 

border-left: 5px solid #000000;

 

which means: border-left: width style color.

Posted

Not directly.

 

But if you place the text is a span you can make the span have a border...

 

But the problem is if you want a border on every line... can't see it happening as the line length would be different depending on browser size and resolution so what is the end of the line on one machine, could be the middle of a sentence on another.

 

{See! Got distracted by real work and now that I answer it is taken care of... figures. Looks like I misunderstood anyways.}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...