Help with CSS url links on Multi pages

Reply

Join Date: Jun 2005
Posts: 61
Reputation: vjw757 is an unknown quantity at this point 
Solved Threads: 0
vjw757's Avatar
vjw757 vjw757 is offline Offline
Junior Poster in Training

Help with CSS url links on Multi pages

 
0
  #1
Jan 5th, 2009
I have a site thewilliamsfamilytree.com.

If you go to the site. You see a bunch of text links on the left side.

My question is
how do i change or control everything in that menu from one CSS file? I would like to use that menu on every page of my site and edit all text and links at from one place.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: Help with CSS url links on Multi pages

 
0
  #2
Jan 5th, 2009
Here's a quick example. Assuming that you have this external style sheet in your directory default.css -- and the rules would be:
  1. ul { list-style-type: none; line-height: 140%; margin-left: 1em; width: 100%; }
  2. li { display: inline; margin: 0.8em 0 0 0.8em; padding-left: 0.5em; line-height: 140%; width: auto; }
  3. li a:link { display: block; text-decoration: none; border-bottom: thin dashed; padding-bottom: 0.3em; } /* now try to reference it with your (x)HTML document's. */
Use the link element to reference it on your pages. Simply insert the code below between the head section of your (x)HTML document's...
  1. <link rel="stylesheet" type="text/css" href="default.css" media="all" />
hope this will help you for now...
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 61
Reputation: vjw757 is an unknown quantity at this point 
Solved Threads: 0
vjw757's Avatar
vjw757 vjw757 is offline Offline
Junior Poster in Training

Re: Help with CSS url links on Multi pages

 
0
  #3
Jan 5th, 2009
im sorry im not understanding
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 76
Reputation: ccube921 is an unknown quantity at this point 
Solved Threads: 6
ccube921 ccube921 is offline Offline
Junior Poster in Training

Re: Help with CSS url links on Multi pages

 
0
  #4
Jan 5th, 2009
1. Save all the CSS in that menu, into a file, and call it menu.css.
2. Add this code to all of the files which have the menu in it:
<link rel="stylesheet" type="text/css" href="menu.css" media="all" />
Now all of the pages with that code in it, use that stylesheet and when you change that stylesheet all of the pages will change
Last edited by ccube921; Jan 5th, 2009 at 10:03 pm.
If I have been helpful add to my reputation!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC