HighDots Forums  

How do I Center Text Horizontally using <span>

alt.html.tags alt.html.tags


Discuss How do I Center Text Horizontally using <span> in the alt.html.tags forum.



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

Default How do I Center Text Horizontally using <span> - 08-12-2006 , 11:08 PM






What do I need to change for the following HTML to center "Some Text"
horizontally ? Thanks.

<span style="position:absolute; top:40; left:200; z-index:2;
font-family:arial; font-size:36; color:blue;">
Some Text</span>



Reply With Quote
  #2  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: How do I Center Text Horizontally using <span> - 08-13-2006 , 02:02 AM






Gazing into my crystal ball I observed "Dave" <dave268 (AT) mindspring (DOT) com>
writing in newsBxDg.3685$Qf.3124 (AT) newsread2 (DOT) news.pas.earthlink.net:

Quote:
What do I need to change for the following HTML to center "Some Text"
horizontally ? Thanks.

span style="position:absolute; top:40; left:200; z-index:2;
font-family:arial; font-size:36; color:blue;"
Some Text</span



Span is inline, you might need DIV.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



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

Default Re: How do I Center Text Horizontally using <span> - 08-13-2006 , 07:08 AM



I need to position "Some Text" in an absolute position vertically so it is
over a background image. So how would I do that with DIV ?

"Adrienne Boswell" <arbpen (AT) yahoo (DOT) com> wrote

Quote:
Gazing into my crystal ball I observed "Dave" <dave268 (AT) mindspring (DOT) com
writing in newsBxDg.3685$Qf.3124 (AT) newsread2 (DOT) news.pas.earthlink.net:

What do I need to change for the following HTML to center "Some Text"
horizontally ? Thanks.

span style="position:absolute; top:40; left:200; z-index:2;
font-family:arial; font-size:36; color:blue;"
Some Text</span



Span is inline, you might need DIV.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share




Reply With Quote
  #4  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: How do I Center Text Horizontally using <span> - 08-14-2006 , 09:42 AM



Gazing into my crystal ball I observed "Dave" <dave268 (AT) mindspring (DOT) com>
writing in news:6DEDg.3772$Qf.1351 (AT) newsread2 (DOT) news.pas.earthlink.net:

Don't top post... see below

Quote:
"Adrienne Boswell" <arbpen (AT) yahoo (DOT) com> wrote in message
news:Xns981E5C7AD58arbpenyahoocom (AT) 69 (DOT) 28.186.121...
Gazing into my crystal ball I observed "Dave"
dave268 (AT) mindspring (DOT) com> writing in
newsBxDg.3685$Qf.3124 (AT) newsread2 (DOT) news.pas.earthlink.net:

What do I need to change for the following HTML to center "Some
Text" horizontally ? Thanks.

span style="position:absolute; top:40; left:200; z-index:2;
font-family:arial; font-size:36; color:blue;"
Some Text</span



Span is inline, you might need DIV.



I need to position "Some Text" in an absolute position vertically so
it is over a background image. So how would I do that with DIV ?

Use DIV instead of SPAN.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



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.