Question:
I need a CSS div code that...?
Rooroo
2010-02-18 14:55:06 UTC
I need the CSS code for a DIV that lets me position the div where I want it to go, and that allows me to have an auto scroll bar :) I want it to be 50px left, 190px top, AND the height of the div is 340. I want it to have an auto scroll bar too.
Any help?
thanks
Three answers:
2010-02-19 02:25:19 UTC
CSS---



div#text_box {

position: absolute;

left: 50px;

top: 190px;

width: 340px; /* Added */

height: 340px;

overflow: auto;

border: 1px solid #f00; /* added */

}



HTML---





If you have enough text here to exceed the height of the text box, the scroll bar will kick in.







Added border so you can see position of box.



Ron
?
2016-11-08 03:41:00 UTC
Your classification .balao is specifying historical past image length, place, and overall performance. you're telling your text cloth in HTML interior the balao div no longer something clever that it could use. image 38696558dc98494c8d951c05290a2as and text cloth 38696558dc98494c8d951c05290a2as could use separate identity's as they're working with separate factors interior of HTML. additionally, you do no longer could use a classification on your historical past image, you ought to use an uncomplicated identity on account which you're dealing with one ingredient purely. classes are for numerous factors. i could create a separate identity and flow the text cloth to the main appropriate place employing a flow or absolute positioning.
CompuTecky
2010-02-18 14:59:06 UTC














NEWS






Segment 1


Segment 2


Segment 3


Segment 4


Segment 5


Segment 6


Segment 7


Segment 8


Segment 9


Segment 10


Segment 11


Segment 12


Segment 13


Segment 14


Segment 15


Segment 16


Segment 17


Segment 18


Segment 19













This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...