I've been working on a div and I am now working on the html/css part in order to complete the styling; After that I will work on the php part to load the text inside the div from a database;
The div:
HTML:
<div class="descriereapostarii">
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
</div>
Over here you can see my problem, my div acts exactly like this code block of HTML above, I don't want that(horizontal overflow) I want the div to overflow vertical.
(over here I have 250 characters, that's because the maximum accepted limit will be 250 when to user writes a description)
CSS:
.descriereapostarii{
padding:1px;
float:left;
position:relative;
border:1px solid #00A800;
height:80px;
width:460px;
overflow:auto;}
The problem:
When the page loads I want to content inside the div to scroll only vertical with respect to the size of the actual div, similar to the this post box when you write your description to a question on stackoverflow, It only overflows vertical not horizontal, I want to do the same thing with my div, any ideas?