Content Text going outside divs
Posted: Thu May 16, 2013 8:51 am
Hi there!
Loving this program but I currently am not very good at using it so forgive this very basic question, however:
I have 3 divs of the same class in a template and a different content tag in each one. I want the content to fit into the width of the div, but it seems to enjoy stretching to the width of the parent div...
Here is my code.
<div id="content">
<div class="3column">
{content}
</div>
<div class="3column">
{content block=second_block label="block2"}
</div>
<div class="3column">
{content block=third_block label="block3"}
</div>
</div>
and here is my css
.3column
{
width:300px;
height:300px;
float:left;
}
In dreamweaver, this creates 3 divs in a row that line up next to each other in the page with the text staying nicely within each div. Something about the content tags seems to override the text staying within the div.
thoughts?
Sorry about my English, I'm Australian.
Loving this program but I currently am not very good at using it so forgive this very basic question, however:
I have 3 divs of the same class in a template and a different content tag in each one. I want the content to fit into the width of the div, but it seems to enjoy stretching to the width of the parent div...
Here is my code.
<div id="content">
<div class="3column">
{content}
</div>
<div class="3column">
{content block=second_block label="block2"}
</div>
<div class="3column">
{content block=third_block label="block3"}
</div>
</div>
and here is my css
.3column
{
width:300px;
height:300px;
float:left;
}
In dreamweaver, this creates 3 divs in a row that line up next to each other in the page with the text staying nicely within each div. Something about the content tags seems to override the text staying within the div.
thoughts?
Sorry about my English, I'm Australian.