Forums
This topic is locked
CSS issue
Posted 06 Apr 2007 19:03:13
1
has voted
06 Apr 2007 19:03:13 Jim Davidson posted:
Hi I'm running Dreamweaver 8
I have a company site with links to three different divisions sites. Every page of all sites will have a logo that I want to use as a link back to the company home page. There's got to be a way for me to put this in a css file but I don't know how to do it.
Heres the code for the logo
<div id="LogoLeft"><a href="imcwebnetwork.com"><img src="images/small_imc_circle.gif" alt="Part of the IMC Web Network" title="Part of the IMC Web Network" width="147" height="106" border="0" /></a></div>
Any help would be greatly appreciated
Replies
Replied 06 Apr 2007 19:13:24
06 Apr 2007 19:13:24 Javier Castro replied:
It seems to me that what you want is more like a Includes file, where you have this images link to all place. So if you edit that image the liks still works the same without having to updates the 3 places. right?
If you are using ASP or PHP that is simple. However if you are using html I don't know if I have seen something like it.
Anyhow, let see first what are you working with html, asp, php?????
Javier
If you are using ASP or PHP that is simple. However if you are using html I don't know if I have seen something like it.
Anyhow, let see first what are you working with html, asp, php?????
Javier
Replied 06 Apr 2007 19:26:16
06 Apr 2007 19:26:16 Jim Davidson replied:
I use both html and php. You're saying if I put my div code in an php include file, then when and if I wanted to change the logo I only need to change the include file. Make's sense I'll give that a whirl and see what happens. By the way it would be more then a couple dozen changes by the time I changes every page in every site
Thanks
Thanks
Replied 06 Apr 2007 20:03:20
06 Apr 2007 20:03:20 Javier Castro replied:
The first time it always takes a few changes, but once the include is in place, then the next time is only one time: the icon and the css.
Replied 06 Apr 2007 20:11:50
06 Apr 2007 20:11:50 Jim Davidson replied:
Well, tried it and it works just fine. I'm new to all this, but learning.
Thank you very much,
Thank you very much,
Replied 10 Apr 2007 20:35:46
10 Apr 2007 20:35:46 The Locust replied:
You can also use Dreamweaver Templates. They are a pain trying to learn at first, but they are pretty cool once you learn how to use them.
What works best for me is to create a master template which all the pages on my site share in common. This would be a very basic template, like an outline. Most likley it would contain the banner, nav bar, footer and main table used to encapsulate the page. Then, for the content area of each page, I create a nested template.
I had to bang my head against the wall a few times before I saw the importance of using nested templates. A great book is 'Dreamweaver MX 2004: The Missing Manual.' I highly recommend it. This is where I learned how to use templates, as well as other cool things.
Anyhow, server side includes are an excellent way to do the same thing as well. Like perl's motto: There's more than one way to do it!
What works best for me is to create a master template which all the pages on my site share in common. This would be a very basic template, like an outline. Most likley it would contain the banner, nav bar, footer and main table used to encapsulate the page. Then, for the content area of each page, I create a nested template.
I had to bang my head against the wall a few times before I saw the importance of using nested templates. A great book is 'Dreamweaver MX 2004: The Missing Manual.' I highly recommend it. This is where I learned how to use templates, as well as other cool things.
Anyhow, server side includes are an excellent way to do the same thing as well. Like perl's motto: There's more than one way to do it!