Log in

View Full Version : How to code with divs.



Colin-Roberts
30-10-2007, 12:43 AM
how do you code with div's so that the layout can expand down and sideways (different resolutions) but has corners that arn't i solid colour. if you get what i mean.

DeejayMachoo$
30-10-2007, 02:12 AM
do you have an example of what you want to do? i dont understand what you mean.

Jamesy
30-10-2007, 08:07 AM
I really think you need a CSS As I have been trying to do some stuff in dreamweaver (newbie) and it keep's saying blah blah attach stylesheet.

Beau
30-10-2007, 08:33 AM
A div, in a nutshell, pulls a piece of CSS code.

Example, you might have something like this in your CSS document:



.content {
width: 600px;
background-color: #7f3f3f;
font-family: Verdana;
}


Then in your HTML document, you would call that piece of CSS code by doing the following:



<div class="content">
Text text text
</div>


That would output a 600px square, coloured #7f3f3f, with the words 'Text text text' displayed in Verdana.

Jamie.
30-10-2007, 04:31 PM
min-width:;
max-width:;

?

Want to hide these adverts? Register an account for free!