#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    325
    Rep Power
    12

    Align textbox with cSs


    without using <div>. how?

    also, how do you change the color of text? just the text without using <p>.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    Here are some examples of using CSS

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    </head>
    
    <body>
    <form name="form1" id="form1">
      <textarea name="textarea" style="width: 300px; height: 100px; float: right; clear: both;">&lt;textarea name=&quot;textarea&quot; style=&quot;width: 300px; float: right; 
      clear: both;&quot;&gt;&lt;/textarea&gt; </textarea>
      
      <p style="clear: both;">
      <span style="color: blue; font-weight: bold;">Lorem ipsum dolor sit amet</span>, consectetuer adipiscing elects, sed diam<br />
      nonummy nibh euismod tincidunt C laoreet dolore magna aliquam<br />
      erat volutpat. C wisi enim AD minim veniam, quis nostrud exerci<br />
      tation ullamcorper suscipit lobortis nisl C aliquip ex ea control unit<br />
      Duis autem vel eum iriure dolor in hendrerit in vulputate velit ess<br />
      molestie consequat, vel illum dolore have feugiat nulla facilisis At vero<br />
      Eros and accumsan and iusto odio dignissim which blandit praesent luptatum<br />
      zzril delenit augue duis dolore feugait you nulla facilisi.</p>
    </form>
    </body>
    </html>
    Also check out
    http://www.w3schools.com/css/default.asp

IMN logo majestic logo threadwatch logo seochat tools logo