HighDots Forums  

Can you create your own CSS as background-text write to padding areas?

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


Discuss Can you create your own CSS as background-text write to padding areas? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RC
 
Posts: n/a

Default Can you create your own CSS as background-text write to padding areas? - 05-31-2006 , 06:48 AM






I found background-color, background-image, but
I don't see background-text. I would like have some
text write to the padding areas like

th, td { margin: 0; border-width: 1; width: 40px; height: 20px;
padding-left: 30px; padding-top: 0; padding-right: 0; padding-bottom: 0;
background-text: 'Hello World'; background-repeat: no-repeat;
background-position: left center; background-attachment: scroll; }


I can do this with background-image: url(helloWorld.jpg);
But I want to write text "Hello World" in the left padding area.
Should W3 consortium create background-text for CSS?

Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Can you create your own CSS as background-text write to padding areas? - 05-31-2006 , 01:53 PM






RC wrote:

Quote:
I found background-color, background-image, but
I don't see background-text
What text is a background? I can't think of any time I would use text that
isn't in content. Can you provide some examples?

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #3  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Can you create your own CSS as background-text write to paddingareas? - 05-31-2006 , 02:02 PM



David Dorward wrote:
Quote:
RC wrote:

I found background-color, background-image, but
I don't see background-text

What text is a background? I can't think of any time I would use text that
isn't in content. Can you provide some examples?
"For internal distribution only. For internal distribution only. For
internal distribution ..."


Reply With Quote
  #4  
Old   
RC
 
Posts: n/a

Default Re: Can you create your own CSS as background-text write to paddingareas? - 05-31-2006 , 03:04 PM



David Dorward wrote:
Quote:
RC wrote:

I found background-color, background-image, but
I don't see background-text

What text is a background? I can't think of any time I would use text that
isn't in content. Can you provide some examples?

Hahaha....!!!
check out this

a:link { color: red } /* unvisited links */
a:visited { color: blue } /* visited links */
a:hover { color: yellow } /* user hovers */
a:active { color: lime } /* active links */
a:focus { background-color: yellow }
a:focus:hover { background-color: #dadabe }

img { border-collapse: separate; border-width: 0; border-spacing: 0;
padding: 0; }

a.image { margin: 0; background-image: url(arrow_right.gif);
background-repeat: no-repeat; background-position: right center; border:
0; padding-top:0; padding-bottom:0; padding-left: 0; padding-right: 15; }

<a class="image" ...>...</a>

This I can put a little image arrow_right.gif at right padding area for
<a> tag, then later I can use JavaScript change the
style.backgroundImage for arrow_down.gif.

This is can pull down menu application.

Now I have a different application, I want to write something in
table's <th> and/or <td> tags in the padding areas.
I want write text (HTML text is better), not the silly image(s).


Reply With Quote
  #5  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Can you create your own CSS as background-text write to paddingareas? - 05-31-2006 , 03:12 PM



RC wrote:

Quote:
img { border-collapse: separate; border-width: 0; border-spacing: 0;
padding: 0; }
What effect do border-collapse and border-spacing have on an image?


Reply With Quote
  #6  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Can you create your own CSS as background-text write to paddingareas? - 06-01-2006 , 09:36 AM



Neredbojias wrote:
Quote:
To further the education of mankind, Harlan Messinger
hmessinger.removethis (AT) comcast (DOT) net> vouchsafed:

David Dorward wrote:
RC wrote:

I found background-color, background-image, but
I don't see background-text
What text is a background? I can't think of any time I would use text
that isn't in content. Can you provide some examples?
"For internal distribution only. For internal distribution only. For
internal distribution ..."

I'd say that's high-priority content, not background.

Yes and no. It's supposed to be repeated over the entirety of the
document. Would it make more sense to insert it within the content at
the end of every sentence?


Reply With Quote
  #7  
Old   
Tony
 
Posts: n/a

Default Re: Can you create your own CSS as background-text write to paddingareas? - 06-01-2006 , 12:54 PM



Harlan Messinger wrote:
Quote:
Neredbojias wrote:

To further the education of mankind, Harlan Messinger
hmessinger.removethis (AT) comcast (DOT) net> vouchsafed:

David Dorward wrote:

RC wrote:

I found background-color, background-image, but
I don't see background-text

What text is a background? I can't think of any time I would use text
that isn't in content. Can you provide some examples?

"For internal distribution only. For internal distribution only. For
internal distribution ..."


I'd say that's high-priority content, not background.


Yes and no. It's supposed to be repeated over the entirety of the
document. Would it make more sense to insert it within the content at
the end of every sentence?
If you want it repeated as the background of the entire document, why
not just put together an image with the words on it, and use that image
as the background?


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 - 2008, Jelsoft Enterprises Ltd.