View Full Version : div layer not working right


Maisie9elwa
02-12-2004, 11:01 PM
Man I am having a heck of a time getting the div layer to work correctly, I have it placed in a table, and finally got it positioned correctly, and I finally got a background image to show up, but it was to the expense of losing my colored scroll bar. Can the two be combined (colored scroll bar/background image) Id imagine so, I just must be doing something wrong.

Is there a way to show you my script? Or how do I know what Im doing wrong?

Ayelet
02-13-2004, 12:06 AM
yea the two can be combined using css style sheet. I found that if you include "http://www.w3.org/TR/html4/loose.dtd" it takes away the scroll bar feature, but maybe thats nothing to do with it. If you want help e-mail the script (not as an attachment), and i will see what i can do :)

Rosey
02-13-2004, 02:34 AM
post your url too and we can take a look.

Maisie9elwa
02-13-2004, 02:54 AM
I dont have a host yet, still working on it (have to have so many posts in the forum before getting approved) so Im just doing my layout work now. I tried emailing you Ayelet but it said that your email is disabled here.

Rosey
02-13-2004, 02:58 AM
you could post your code here if it's not too long or you could just set up a geocities account and upload there to test stuff.

Maisie9elwa
02-13-2004, 03:23 AM
I attached it to my old site, couldnt remember the password for nothing then I remembered I used to use ftp to do it, and its already knows my password. :) Heres the link, and maybe you might know what I did wrong with my coding for my drop down menu, the third one says "undefined" on the top. Cant quite figure it out. Thanks!

http://capriciouspoet.fateback.com/mother.html

Rosey
02-13-2004, 05:16 AM
in your head tags, you have a lot of <style> tags just put everything in one style tag.

in your div you have this:


<div style="position:; left:95px; top:95px; width:500px; height:160px; background-color:#EBCE8C; background-image:url(Image2.gif); layer-background-image:url(Image1.gif);" overflow:auto; scrollbar-face-color : #EBCE8C; scrollbar-highlight-color : #EBCE8C; scrollbar-3dlight-color : #EBCE8C; scrollbar-shadow-color : #009CA5; scrollbar-darkshadow-color : #009CA5; scrollbar-track-color : #94CE94; scrollbar-arrow-color : #1E1510; >



that shouldn't be there, that should be at the end of the style, just before the closing >

see how that works. I didn't look closely but that's what i noticed so far.

Maisie9elwa
02-13-2004, 02:31 PM
Ya I get sloppy with my html in the beginning I usually clean it up when Im finished with the layout. How embarrasing. lol I moved that script to the end of the style sheet, and when I did my entire box disappeared. The script works fine if I remove the background image, but when I keep them then the scroll bar disappears. *scratches head*

Maisie9elwa
02-14-2004, 08:11 PM
Got it! Thanks Ayelet again & Rosey for all your help! :D