View Full Version : I think I am supposed to use a CSS???

10-31-2008, 09:30 PM
I want to use a logo.gif and background on all of my pages within my website. Is this done by a CSS? I am not real proficient at CSS but I have been reading up. Is this the simpliest way to accomplish this?

here is my website: http://www.controlsecurity.net/index.htm


10-31-2008, 09:42 PM
First, Welcome aboard!
Secondly you do have some errors in your markup here (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.controlsecurity.net%2Findex.htm&charset=%28detect+automatically%29&doctype=Inline&group=0).

<script type="text/javascript" >

Yes, it is better to use css for your purpose as it makes it much easier to modify all the pages common features, by just amending the style sheet.

Try this set of resources to help you. (http://exitfegs.co.uk/Sources.html)


10-31-2008, 09:46 PM
Yes, you can plug in an external style guide by placing this in your head:

<link rel="stylesheet" type="text/css" href="css/site_style.css" />

Inside of that you can define all sorts of styles, one of which is the background of your body:

background: #ffffff (../images/logo.gif) no-repeat left top;

You can google "css tutorials" or check out http://www.w3schools.com/css/ to learn more about css and it's capabilities.