What would be the best way to creat my navigation?

  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post May 26th, 2004, 7:56 pm

Hey guys,

Im having a bit of trouble on my current commision site. I need to create the top navigation, but Im honestly not sure how to do it. I do not want to have them as images i want them to be plain text links (i.e the subnav links) but Im not sure how to place them there. Is there a way to do it using CSS or a div? just so you have an idea here is the link:

http://www.playersnmotion.com/main_site

you can see the links across the top are not clickable, that whole section from the banner to the link bar is one image, I tried placing the image as the TD background, but it completely messes up the page. I would like the links to be placed and spaced the same way they are in the image. If any of that made sense to you please help!!!
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 26th, 2004, 7:56 pm

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post May 27th, 2004, 8:00 am

I would do it like this:

Code: [ Select ]
<div style="background:url(myBkgnd.gif);height:Xpx;">
<a href="blah.htm">Blah</a><a href="bleh.htm">Bleh</a><a href="blek.htm">Blek</a>
</div>
  1. <div style="background:url(myBkgnd.gif);height:Xpx;">
  2. <a href="blah.htm">Blah</a><a href="bleh.htm">Bleh</a><a href="blek.htm">Blek</a>
  3. </div>
- dM
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post May 27th, 2004, 8:33 am

Thanks DM! now is there a simpler way to line up the links as I shown on the site, without having to insert a bunch of < br > and &nbsp? because right now the links are at the top left, i need them to sart bottom left. Thanks. :D
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post May 27th, 2004, 8:56 am

CSS:
on the TD, vertical-align:bottom

on the links, padding:5px

will send them to the bottom and space them, the links shouls end up 5px from the bottom and sides, 10px from each other.

If a user uses text-zoom the links should expand over the title and not mess up the layout too much.
CSS website design tutorials
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post May 27th, 2004, 9:16 am

Im havent really used CSS. how would you write out that code please?
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post May 27th, 2004, 9:32 am

Code: [ Select ]
<td id="titleNav">


in the head:

Code: [ Select ]
<link rel="stylesheet" type="text/css" href="/style.css" />

<-- Check it :D


then create a file called style.css and save in the / folder (probably will be www/ )

then in style.css:

Code: [ Select ]
#titleNav{
  vertical-align:bottom;
}
#titleNav a{
  padding:5px;
/* You may also need these styles, remove the comment
  if you do need them
  display:block;
  float:left;  */
}
  1. #titleNav{
  2.   vertical-align:bottom;
  3. }
  4. #titleNav a{
  5.   padding:5px;
  6. /* You may also need these styles, remove the comment
  7.   if you do need them
  8.   display:block;
  9.   float:left;  */
  10. }


You should also have a valid doctype else IE <i>might</i> throw a wobbly on you.

Then got to http://www.w3schools.com and click on the css tutorial and learn :wink:
CSS website design tutorials
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post May 27th, 2004, 9:53 am

lol I started learning yesterday as a matter of fact :). Thanks rtm I got it more or less how i want it. Ill figure the rest out. Thanks both of you :d
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post May 27th, 2004, 9:59 am

just out of curiosity, did you need the display block and float?
CSS website design tutorials
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post May 27th, 2004, 11:55 am

ummm.....to be truly honest I have absolutly no idea what it means. So i left it in there :oops: . Your code didnt work for me though. Im not sure why. I already had a link to an external stylesheet and i placed it in there. i posted a link to the webpage in my opening topic, would u take a look for me and tell me what I am missing?
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post May 27th, 2004, 12:05 pm

I'm really not sure....

You have got a lot of overlapping tags, which need to be sorted out - they can cause all sorts of funkdoobieness because different browsers will do different things with them. I would definately start by losing all of those <br>'s and &nbsp;'s
CSS website design tutorials
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post May 27th, 2004, 12:34 pm

ok I got rid of all the break and space tags. Now all i gotta do is get your code to work and I'm all set :D
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post May 27th, 2004, 12:52 pm

Is the div supposed to contain the links or not?

If it is we are in poo. I'll have to think about it lol. Sorry this is messing you about a bit.

Can you also sort out the overlapping tags:
Code: [ Select ]
<td>
  <center>
        <div>
    </center>
            <strong>
                &lt;a>
                    <U>text</U>
                </a>
                ...
        </div>
</td>
  1. <td>
  2.   <center>
  3.         <div>
  4.     </center>
  5.             <strong>
  6.                 &lt;a>
  7.                     <U>text</U>
  8.                 </a>
  9.                 ...
  10.         </div>
  11. </td>


the div and center need sorting out, and the strong needs to be closed.

I think I know how to sort it out now, but I'm gonna have to think about it.
CSS website design tutorials
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post May 27th, 2004, 12:57 pm

ok rtm, take a look at it now :D. I know i need to clean up my code a bit but that should be about it! does it show up any different in mozilla?

//edit: You should see a centered webpage with the top links just slightly to bottom left of the link bg. basically a smooth webpage. I had to add some align codes in my style sheet :) Thanks for getting me started!
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post May 27th, 2004, 1:14 pm

:D

And I thought we were going to be messing around for another half hour - looks fine in FIrefox, mozilla netscape and internet explorer. Even looks good on opera

:D


Sorry, I just noticed, the links look right on all browsers, but the main page is slightly skewed by about 5px. I barely noticed it. Your best bet is to get a copy of firefox and see for yourself.

This is a minor problem, and it's a <b>table</b> problem methinks, so I probably won't be able to sort that one for you.
CSS website design tutorials
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post May 27th, 2004, 1:16 pm

NP tables I can handle. Thanks rtm :D
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 27th, 2004, 1:16 pm

Post Information

  • Total Posts in this topic: 32 posts
  • Users browsing this forum: No registered users and 72 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.