Shah_10 Posted March 14, 2007 Share Posted March 14, 2007 Hi, please can someone help me... I am making my own website.. and using CSS for styles.. i want to have my logo from the main page to appera on every page with out me having to copy and paste..... i will be really greatfull if some one can help me MAny thanks and best of luck with the futre. Quote Link to comment Share on other sites More sharing options...
aebstract Posted March 14, 2007 Share Posted March 14, 2007 Place your image in a div and give the div and id. Then you can set the background image of that div to the logo, the div will have to go on each page. This is the best way to do what you want (with css), where you can change it in the css and it changes on each page. HTML Code: <div id="logo"></div> CSS Code: #logo { background-image: url(images/logo.jpg); } Of course change images/logo.jpg to your logos path. Hope this helps, if not what you were going for then please elaborate on your question. Good luck. Quote Link to comment Share on other sites More sharing options...
jcombs_31 Posted March 14, 2007 Share Posted March 14, 2007 The only option with css is the set the logo as a background image on one of your elements that appears on each page. I typically place the logo inside an img tag rather than using it as a background image. Ideally, you should create an included page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.