Jump to content
Stef's Coding Community
williamrouse

Bordered text

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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;

)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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.}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...