By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,766 Members | 1,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,766 IT Pros & Developers. It's quick & easy.

div style

P: 27
what does the div element do and can use it in both HTML AND CSS?
Please show examples

thanks
Feb 9 '07 #1
Share this Question
Share on Google+
2 Replies


jhardman
Expert 2.5K+
P: 3,405
sounds like a test question. Didn't you take notes in class? :-)

Try:
http://www.htmlhelp.com/reference/html40/block/div.html
Feb 9 '07 #2

100+
P: 254
css:
Expand|Select|Wrap|Line Numbers
  1. div.h1 { text-decoration: underline }
  2.  
html:
Expand|Select|Wrap|Line Numbers
  1. <div class="h1">This is header </div>
  2.  
is that what you want?
from
Nicky Eng
Feb 10 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.