homepage Welcome to WebmasterWorld Guest from 54.224.79.93
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library : Charter : Moderator: open

CSS Forum

    
text-align property in span
text-align property in span
ravi




msg:3710071
 8:55 am on Jul 29, 2008 (gmt 0)

hi,

I am designing the web page with web2.I am new to web 2,but i knew the table design only.now i am facing one problem.When i am designing with the <Div><span> tags.

<span style="text-align:left">It is not working</span>

I would like to apply the text-align property with the span tags.whether any tags available to apply the text-align:left property.

by
ravi

 

JamieBrown




msg:3710087
 9:27 am on Jul 29, 2008 (gmt 0)

The <span> tag doesn't really work as a block in the same way a <div> does - its simply there to format text, not arrange or position it. Is there any particular reason why you're using a <span> instead of a <div>?

<div style='text-align:right; width:100px;'>Test</div>

That seems to do the trick for me!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved