View Full Version : div blog w/ scrollbar & other questions


salomeyasobko
02-16-2004, 11:00 AM
okay i have a few questions and help is appreciated muchly! :D

on the "blog" part of my site, is it possible to put a scrollbar on it so that the size wouldn't keep changing [lengthwise] or would i have to use an iframe to make that possible?

and er, if you don't mind, could you check out my source and tell me if my div coding makes sense, because it's not doing what i want it to but i don't know how to make it.. i think what i wrote has no purpose :buckt: sorry, i'm just starting out with div. i wanted the dates ["february 16, 2004"] to be highlighted in the green color [#B4CE98].. does anyone know how to do that?

also, i made the background of my blog part transparent but i didn't want the text to be transparent too, just the background. how can i fix that?

sorry if i'm not being clear, i'll try to explain myself better if i dont make sense :rolleyes: thank you veryvery much in advance!! :)

my site: www.geocities.com/salomeyasobko

Rosey
02-16-2004, 03:17 PM
You can make div layers scroll:

<div id="blog" style="position: absolute; left: 255px; top: 245px; width: 375px; height: 275; font-family: times new roman; font-size: 10pt; color: #ffffff; border: 2px dashed #ffffff; FILTER: chroma(color=#ffffff); overflow:scroll; overflow-x:hidden; padding:5px;" >

The thing with the opacity filter is that it only works in IE and it does make your text also go that way. What you should do is make an area on your actual image to look like the effect you want. Make a new layer, select the area, flood fill with your color and then change the transparency and save it that way.

I'm not sure if IE will make the background white or not if you don't specify a color in the div, i know it does that with iframes. IE doesn't work on this computer for me to check.

As far as you date goes, add this to your css:

.date
{ background:#B4CE98;}


If you want just the text use <span> tags. <span class="date">Feb ...</span>

salomeyasobko
02-16-2004, 06:57 PM
WOW!! thank you SOOOOO much!!!! i'll fix it now :D

salomeyasobko
02-16-2004, 07:28 PM
everything is very lovely now except for the date.. the highlighting isn't working :( i tried it with the <span> tags, but it still didn't work. i wanted it to be like.. a rectangle of color that stretches across the length of the blog. anyway, thank you very much for your help :)

EDIT: i know this isn't related to my first question, but my links aren't working properly! they're supposed to have the "line-through" thing when you hover over them. also, they're supposed to be green, not purple. so, what did i do wrong? thanks :D

salomeyasobko
02-16-2004, 07:38 PM
well i fixed the div background thing.. i just put <div style="background-color:#B4CE98"> and that worked perfectly :D

now all that's left are my links :lol:

salomeyasobko
02-16-2004, 08:25 PM
i fixed it! i realized that i forgot to replace the "value" thing with "line-through" [i didn't read lissa's helpful css tutorial all the way through] so, that's what happened, and then i also forgot to add the } thing after A: hover blahblahblah :D so, yeah thanks rosey for your help! :)

Rosey
02-17-2004, 12:08 AM
no prob, that background thing worked when i tried it, maybe it's just a netscape thing...lol