I have a CSS-styled HTML drop-down menu that I want common across all web pages. Right now, I have the HTML coding in each file, but the CSS link is broken in subdirectories so the stlying does not work. How can I get the CSS to be linked properly and how could I have a master menu so I only have to change things once? Thanks.
iamthesgt
0
Junior Poster
Recommended Answers
Jump to PostCopy the CSS file to each of your subdirectories.
Also please post your html link to the css file. I am basing my above solution that your html is calling for the file to be within the directory the file is in.
Jump to PostWhat's the link href to the css in the pages that aren't working? It should be something like
<link href="../css/dropdown/dropdown.css" media="screen" rel="stylesheet" type="text/css" /> <link href="../css/dropdown/themes/default/default.css" media="screen" rel="stylesheet" type="text/css" />
All 8 Replies
Lightninghawk
40
Posting Whiz in Training
iamthesgt
0
Junior Poster
Lightninghawk
40
Posting Whiz in Training
iamthesgt
0
Junior Poster
Dandello
8
Posting Whiz in Training
iamthesgt
0
Junior Poster
Dandello
8
Posting Whiz in Training
iamthesgt
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.