bookyalex
02-24-2004, 01:24 AM
Is there any way to use the master style sheet to use div (or any other type of positioning) to affect all of your pages?
Ex:
http://www.geocities.com/bookyalex/digitaldream.html
If I wanted every page to have the images and the tables exactly where there are there, how would I incorporate that into a master style sheet where I link to it on each page, and can alter an entire layout with just the one sheet?
Hope that made sense. xP
kittycat
02-24-2004, 03:28 AM
Example for one of your divs:
<div style="position: absolute; top: 0px; left: 0px; width: 0;">
In your style sheet have
#div1 { position: absolute; top: 0px; left: 0px; width: 0; }
Replace that div tag with
<div id="div1">
Then do that with all your other divs.
bookyalex
02-25-2004, 01:11 AM
Question numero deux:
Is there any way to set up the css page so that the image url is in the css, and, say, whenever you type
<div id="div6"></div>
You have the image positioned without having to manually put the picture on each page?
kittycat
02-25-2004, 03:13 AM
An image in the div? You could always set it as the background image of one...
background-image: url('bg.gif');
Add that to the div you want it in.
Rosey
02-25-2004, 05:39 AM
You could do that with an external style sheet and put what kittycat said in that stylesheet.
http://www.lissaexplains.com/css2.shtml
You can then put this in your style sheet.
#div6 { background-image: url('bg.gif'); }
bookyalex
02-26-2004, 12:42 AM
Oh, ok. :) Thanks for the help you two, I really appreciate it. ^-^ If I have any more questions I'll be sure to ask you. ;)