fuccitzjessica
09-20-2004, 03:25 PM
hi...what i'm trying to do is get my scrollbar for my div to be on the left side of my page, i saw this code <div style="direction:ltr"> but i don't know where to put it in the div...if someone could help me thanks
Monkey Bizzle
09-20-2004, 05:28 PM
actually, since you already are using a div, you only need style="direction:ltr"
just put it inside your div... I don't know exactly what your code looks like but if you have
<div blahblahblah>
your content
</div>
just add it inside the opening <div> tag, just like the code that you posted above!
fuccitzjessica
09-20-2004, 06:16 PM
ok...i'm sorry i still don't get where to put it....this is my div..
<div style="position:absolute;top:150px;left:330px;border:#FFF F00 0px solid;background:;width:288;height:170px">
<div style="background:;border:#FFFF00 0px solid;font-family:times new roman;font-size:10.5px;color:#FFFFFF;width:288px;height:170px ;overflow:auto">blaaaah</div>
would i put it right after <div style= ?
Monkey Bizzle
09-20-2004, 06:51 PM
<div style="position: absolute; top: 150px; left: 330px; border: #FFFF00 0px solid; background: ; width: 288; height: 170px">
<div style="background: ; border: #FFFF00 0px solid; font-family: times new roman; font-size: 10.5px; color: #FFFFFF; width: 288px; height: 170px; overflow: auto">
blaaaah
</div>
the above code is what you have... I noticed a few errors. First of all, why do you have 2 divs? You can specify everything in one div. Second of all, if your border width is 0px, then that means you can't see it, so why even have that coding at all. Third, you have background: and then nothing... if you don't specify a background, then again, why have the coding for it. And lastly, when using CSS (which is what you are using when you use the style attribute) you always have to specify a measurement after numbers > 0. So, if you fix all these errors, the above code that you posted would now look like this:
<div style="position: absolute; top: 150px; left: 330px; width: 288px; height: 170px; font-family: times new roman; font-size: 10.5px; color: #FFFFFF; overflow: auto; direction: ltr;">
blaaaah
</div>
If you have other div coding that looks like this, you should clean that up too!
fuccitzjessica
09-20-2004, 06:56 PM
alright thank yu...i have nothing for background and border because its for a layout
Monkey Bizzle
09-20-2004, 06:58 PM
that's fine but i was just saying that those codes don't need to be in there if you aren't using them. it could confuse the browser, it is improper coding, and it just takes up more space and makes the code look more messy.