Forum Moderators: not2easy

Message Too Old, No Replies

<div> & CSS

are div tags html or css?

         

Old_Timer

1:19 am on Jun 26, 2004 (gmt 0)

10+ Year Member



My question. If the question is in the wrong area I apologize. I have a lot of questions about CSS. I started using CSS about two years ago to control fonts. I recently discovered the power of the <div> tag with "class" or "id".

I have been able to move our left nav bar to the bottom of the page so it displays last for search engines rather than first. I have also been able to start removing some nested tables by using the <div> tag.

As a CSS dumbie Is my use of the <div> CSS or a combination of CSS and HTML?

Thanks for any help or information.

Rambo Tribble

1:30 am on Jun 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A division is an HTML object created by opening and closing, <div></div>, tags in the body of an HTML (or XHTML) page. The attributes applied to the division through the style="" attribute in the division tag (as <div style="background:blue;"></div>, which is an inline style) or through a style sheet in the head of the document, as in:
<style type="text/css">
div{position:absolute;}
</style>
(this is an internal style sheet), or through loading an external style sheet loaded either through a link as in:
<link rel="stylesheet" href="styles.css" type="text/css">
or through an @import rule in the internal style sheet declaration are the CSS.

Old_Timer

1:55 am on Jun 26, 2004 (gmt 0)

10+ Year Member



If I understand you correctly any use of the <div> tag is HTML. Adding a class or id incorporates CSS into HTML. I think that answers my question. If I have a qestion that involves <div=Class or ID> that question is appropiate for the CSS forum. If I have a different question about the <div> tag that should be posted in the HTML forum.

Thanks for the quick reply.