![]() ![]() |
| richnlp |
Aug 18 2012, 02:55 AM
Post
#1
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
Hi again, I'm looking for instructions on how to add menu links across the green banner located on this site here: Carpet and Rug Cleaning. Any help is greatly appreciated.
The links I want to add are for the pages: HOME--PRICING--SERVICES--ABOUT US--24HR EMERGENCY |
| Frederiek |
Aug 18 2012, 03:54 AM
Post
#2
|
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 3,546 Joined: 23-August 06 From: Europe Member No.: 9 |
You can use a list (UL, LI) to create the menu links. See the tutorials at http://css.maxdesign.com.au/ .
PS, are you aware that your page has some files that return a 404 Not Found and some js errors? -------------------- "The earth does not belong to us. We belong to the earth."
from Vue du ciel (in French) "Leave scepticism to others and take action" from HOME by Goodplanet An inconvenient truth by Al Gore |
| richnlp |
Aug 18 2012, 07:51 PM
Post
#3
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
You can use a list (UL, LI) to create the menu links. See the tutorials at http://css.maxdesign.com.au/ . PS, are you aware that your page has some files that return a 404 Not Found and some js errors? Thanks, I'll try that. Yeah I'm still in the middle of creating the site. I'll be using less js by the time I'm finished. Thanks again for the help. |
| richnlp |
Aug 19 2012, 04:47 AM
Post
#4
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
I'm still not understanding how to do it after reading the tutorials.
Is it possible to give me the code to add menu links to the green banner (in link above)? Links are: HOME, PRICES, SERVICES, ABOUT US, and 24HR EMERGENCY. Lol, feel like I'm asking for crib notes for a test! Green Banner ![]() This post has been edited by richnlp: Aug 19 2012, 04:52 AM |
| pandy |
Aug 19 2012, 07:38 AM
Post
#5
|
|
Don't like donuts. Don't do MySpace. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 13,729 Joined: 9-August 06 Member No.: 6 |
That looks like something that should be used as a background image.
-------------------- |
| Frederiek |
Aug 20 2012, 03:04 AM
Post
#6
|
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 3,546 Joined: 23-August 06 From: Europe Member No.: 9 |
It is a background image set inside a TD.
Get rid of the SPAN, that serves no use, in that TD. Then, take the entire <ul>...</ul> markup and the CSS from the example Simple horizontal list at http://css.maxdesign.com.au/listamatic/horizontal01.htm . Change the link HREF and text to accommodate yours. In a nutshell, it's as simple as that. -------------------- "The earth does not belong to us. We belong to the earth."
from Vue du ciel (in French) "Leave scepticism to others and take action" from HOME by Goodplanet An inconvenient truth by Al Gore |
| richnlp |
Aug 20 2012, 07:58 PM
Post
#7
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
It is a background image set inside a TD. Get rid of the SPAN, that serves no use, in that TD. Then, take the entire <ul>...</ul> markup and the CSS from the example Simple horizontal list at http://css.maxdesign.com.au/listamatic/horizontal01.htm . Change the link HREF and text to accommodate yours. In a nutshell, it's as simple as that. Below is the code I have made from the example but I'm still not sure how to enter it into my code so it shows up on my green image? Code: <div id="navcontainer"> <ul id="navlist"> <li id="active"> <a href="index.html" id="current">Home</a></li> <li> <a href="services.html">Services</a></li> <li> <a href="about.html">About Us</a></li> <li> <a href="emergency.html">24HR Emergency</a></li> <li> <a href="contact.html">Contact Us</a></li> </ul> </div> Image Code (after taking out spans): <TD valign="top" background="layout/layout/layout_3.jpg"> </TD> Thanks for the example, big help. |
| pandy |
Aug 20 2012, 09:13 PM
Post
#8
|
|
Don't like donuts. Don't do MySpace. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 13,729 Joined: 9-August 06 Member No.: 6 |
Put it in the TD the image is a background for.
-------------------- |
| richnlp |
Aug 20 2012, 09:22 PM
Post
#9
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
It is a background image set inside a TD. Get rid of the SPAN, that serves no use, in that TD. Then, take the entire <ul>...</ul> markup and the CSS from the example Simple horizontal list at http://css.maxdesign.com.au/listamatic/horizontal01.htm . Change the link HREF and text to accommodate yours. In a nutshell, it's as simple as that. Below is the code I have made from the example but I'm still not sure how to enter it into my code so it shows up on my green image? Code: <div id="navcontainer"> <ul id="navlist"> <li id="active"> <a href="index.html" id="current">Home</a></li> <li> <a href="about.html">About Us</a></li> <li> <a href="services.html">Services</a></li> <li> <a href="dos.html">Do's and Don'ts</a></li> <li> <a href="testimonials.html">Testimonials</a></li> <li> <a href="water-damage.html">Water Damage Restoration</a></li> <li> <a href="contact.html">Contact Us</a></li> </ul> </div> Image Code (after taking out spans): <TD valign="top" background="layout/layout/layout_3.jpg"> </TD> Thanks for the example, big help. |
| pandy |
Aug 20 2012, 09:40 PM
Post
#10
|
|
Don't like donuts. Don't do MySpace. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 13,729 Joined: 9-August 06 Member No.: 6 |
CODE <TD valign="top" background="layout/layout/layout_3.jpg"> </TD> ^^^^^^ HERE! But remove the first. -------------------- |
| richnlp |
Aug 21 2012, 12:02 AM
Post
#11
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
CODE <TD valign="top" background="layout/layout/layout_3.jpg"> </TD> ^^^^^^ HERE! But remove the first. Thanks, I must be doing something wrong. The links come in scrunched up as on this test page. |
| Frederiek |
Aug 21 2012, 02:11 AM
Post
#12
|
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 3,546 Joined: 23-August 06 From: Europe Member No.: 9 |
You didn't put the code you posted last, which is correct. Instead, in your test page, all links are contained inside *one* LI element, with 's,.
And where did you put the CSS for the list? Also, your page doesn't have a DOCTYPE. The validator would have pointed that and related markup errors out which you should fix: http://www.htmlhelp.com/cgi-bin/validate.c...s&input=yes -------------------- "The earth does not belong to us. We belong to the earth."
from Vue du ciel (in French) "Leave scepticism to others and take action" from HOME by Goodplanet An inconvenient truth by Al Gore |
| richnlp |
Aug 21 2012, 08:00 PM
Post
#13
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
You didn't put the code you posted last, which is correct. Instead, in your test page, all links are contained inside *one* LI element, with 's,. And where did you put the CSS for the list? Also, your page doesn't have a DOCTYPE. The validator would have pointed that and related markup errors out which you should fix: http://www.htmlhelp.com/cgi-bin/validate.c...s&input=yes Here is my new code. This web editor kept taking out my lis lol. The CSS is in the css folder. NEW MENU CODE: <p> <li> <a href="index.html" id="current">Home</a></li> </p> </body> <body> <p> <li> <a href="http://about.html">About Us</a></li> </p> </body> <body> <p> <li> <a href="http://services.html">Services</a></li> </p> </body> <body> <p> <li> <a href="http://dos.html">Do's and Don'ts</a></li> </p> </body> <body> <p> <li> <a href="http://testimonials.html">Testimonials</a></li> </p> </body> <body> <p> <li> <a href="http://water-damage.html">Water Damage Restoration</a></li> </p> </body> <body> <p> <li> <a href="http://contact.html">Contact Us</a></li> </p> |
| richnlp |
Aug 21 2012, 08:41 PM
Post
#14
|
|
Member ![]() ![]() ![]() Group: Members Posts: 33 Joined: 8-March 12 Member No.: 16,661 |
You didn't put the code you posted last, which is correct. Instead, in your test page, all links are contained inside *one* LI element, with 's,. And where did you put the CSS for the list? Also, your page doesn't have a DOCTYPE. The validator would have pointed that and related markup errors out which you should fix: http://www.htmlhelp.com/cgi-bin/validate.c...s&input=yes Here is my new code. This web editor kept taking out my lis lol. The CSS is in the css folder. NEW MENU CODE: <p> <li> <a href="index.html" id="current">Home</a></li> </p> </body> <body> <p> <li> <a href="http://about.html">About Us</a></li> </p> </body> <body> <p> <li> <a href="http://services.html">Services</a></li> </p> </body> <body> <p> <li> <a href="http://dos.html">Do's and Don'ts</a></li> </p> </body> <body> <p> <li> <a href="http://testimonials.html">Testimonials</a></li> </p> </body> <body> <p> <li> <a href="http://water-damage.html">Water Damage Restoration</a></li> </p> </body> <body> <p> <li> <a href="http://contact.html">Contact Us</a></li> </p> I just decided to turn it into a banner on the other pages lol. I'm going to make a different menu and add it to the top of site. Thanks for all the help though, I really appreciate it. |
| pandy |
Aug 21 2012, 08:42 PM
Post
#15
|
|
Don't like donuts. Don't do MySpace. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 13,729 Joined: 9-August 06 Member No.: 6 |
Why did you change what was correct? The new version is broken in so many places that I can't count them. To take one thing, do you know how many BODY a document can have and where it should go?
-------------------- |
| Frederiek |
Aug 22 2012, 02:47 AM
Post
#16
|
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 3,546 Joined: 23-August 06 From: Europe Member No.: 9 |
Since you're going to create a menu anyway, at least start out with the correct HTML markup structure.
-------------------- "The earth does not belong to us. We belong to the earth."
from Vue du ciel (in French) "Leave scepticism to others and take action" from HOME by Goodplanet An inconvenient truth by Al Gore |
![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 06:59 PM |