Welcome visitor
* Login
* Register
It is currently September 15th, 2019, 9:56 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  divs not css
PostPosted: May 19th, 2009, 5:41 am 

Posts: 21
Hi, im trying to get involved with the divs for html and i found some code that has a lot of css for those divs so it makes it a little complicated. Do i need css to use divs or whats the deal?

Thank you, just some guidelines would be enough.


Top
 Profile  
 
  Re: divs not css
PostPosted: May 19th, 2009, 5:57 am 

Posts: 96
Well, you should not confuse what CSS and DIVs do to your code. Try this. Remove all from <style> to </style> and also all the style="bla bla bla" and see what happens.

DIVs are containers to group together part of the content of a page so you can give it color, format, etc. And that's what CSS is used for.

For example, to gruoup a few things this would be enough
<div><img src="picture.jpg" />this is my picture</div>

and this would paint the text in red
<div style="color: #f00"><img src="picture.jpg" />this is my picture</div>


Hope this helps.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron