Html

I am getting to the stage of creating sites with html. I want to have a navbar on top and text in the middle of the page. How do i position things?
Oh, and i use css. I find position:absolute takes to much time and effort
I didn't think about this earlier, but using floating div tags isn't too hard to keep straight. When I took all this stuff, div didn't exist yet.
So, is div just like giving html class things.
Code:
<p class="black">hello</p>
and then in a css document

Code:
p.black {color:#000000}
div is different than using a class. If it helps, you can think of div like a cell in a layout table. Just remember that unless you set the width, a div tag will take up the full width available.
 
Back
Top