Jump to content

Define A Rectangular Region


AndyCanfield

Recommended Posts

I am frustrated because this:

<div style='width:400px:height:150px;border:1px solid blue'>...</div>

does not give me a 400 by 150 pixel region on the page.(the 'border' could be background-color; it's just there toshow the region boundaries.) <div> always seems to be page width.The best I can get is with <td> (table cell),which will be no bigger than the enclosed contents. I want a "box" into which I can put thingsand those things will be inside the boxand the box will be around those thingswith the specified size.Exclusive - nothing else on the page will be inside the box(<\<div><img align='left' eats contents way past the </div>)! Is this even possible with HTML and CSS ?

Link to comment
Share on other sites

<div style='width:400px:height:150px;border:1px solid blue'>...</div>

You got mistakes in your code :) You don't use a semicolon in the first and the last properties. Try fixing those like below:
<div style='width:400px; height:150px; border:1px solid blue;'>...[/color][/color]</div>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...