Jump to content


Creating HTML navigation bar

Navigation Bar

3 replies to this topic

#1 Raisin

    Member

  • 2 posts
  • Joined: October 08, 2011
  • 1 topics
  • Local time: 09:54 PM
  • Zodiac:Aquarius
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 48m 42s

Posted 26 November 2011 - 11:35 AM

Hi Broni,

Need your help on creating a horizontal navigation bar, which is exactly the same as IPB. I'm almost 90% completed but don't know how to make it static just like in IPB in different computer resolution. Hope you understand what I mean. Please refer to the following codes I'm currently working on. Your guidance will be very much appreciated. Many thanks.

<div id="horizontalnav">
<div class="navlinks">
<ul>
<li><a href="#" title="Go to Home">Home</a></li>
<li><a href="#" title="Go to Forum">Forum</a></li>
<li><a href="#" title="Go to Blog">Blog</a></li>
<li><a href="#" title="Go to Hotels">Hotels</a></li>
</ul>
</div>
</div>


<style type="text/css">
#horizontalnav {min-width: 980px; height: 34px; position: relative; background-color: #8B7355;}</style>

<style type="text/css">
.navlinks { position: absolute; top: 10px; left: 160px; }</style>

<style type="text/css">
.navlinks ul { margin: auto;}</style>

<style type="text/css">
.navlinks li { font-weight: bold; margin: 0px 3px 0 0; list-style-type: none; display: inline; }</style>

<style type="text/css">
.navlinks li a { color: #fff; padding: 6px 15px 8px; text-decoration: none; font-size: 13px;}</style>

<style type="text/css">
.navlinks li a:hover { background: #328586; color: #fff; text-decoration: none;}</style>


Regards,

#2 Broni Re: Creating HTML navigation bar

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:54 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 26 November 2011 - 04:21 PM

Instead of this:
min-width: 980px
use this:
width: 100%

#3 Raisin Re: Creating HTML navigation bar

    Member

  • 2 posts
  • Joined: October 08, 2011
  • 1 topics
  • Local time: 09:54 PM
  • Zodiac:Aquarius
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 48m 42s

Posted 27 November 2011 - 02:03 AM

Hi Broni, thanks for your reply.

It doesn't work. Any more suggestion? Thanks.

#4 Broni Re: Creating HTML navigation bar

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:54 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 27 November 2011 - 02:55 AM

Do you have live link?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 9 user(s)