Aligning menu blocks horizontally

This is a discussion on "Aligning menu blocks horizontally" within the Web Page Design section. This forum, and the thread "Aligning menu blocks horizontally are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 9th, 2008, 20:58
New Member
Join Date: Apr 2008
Location: oxford
Age: 21
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Aligning menu blocks horizontally

I am trying to use the following code to create a menu across the top of a page but the display:block tag automatically adds them to a new line, is there a way to override this?
Thanks

Code: Select all
#home
{
  display: block;
  width: 107px;
  height: 23px;
  background: url("home.gif") no-repeat 0 0;
}

#home:hover
{ 
  background-position: -180 0 ;
}

#home span
{
  display: none;
}

#price
{
  display: block;
  width: 107px;
  height: 23px;
  background: url("price.gif") no-repeat 0 0;
}

#price:hover
{ 
  background-position: -180 0 ;
}

#price span
{
  display: none;
}

#enq
{
  display: block;
  width: 107px;
  height: 23px;
  background: url("enq.gif") no-repeat 0 0;
}

#enq:hover
{ 
  background-position: -180 0 ;
}

#enq span
{
  display: none;
}
HTML: Select all
<div id="container">
  <div id="heading">
   <h1>Ock Hire</h1>
  </div>
  <div id="navigation">
  <p>navigation</p>
  </div>
  <div id="content">

Last edited by Aso; Apr 9th, 2008 at 22:24. Reason: Use bbcode
Reply With Quote

  #2 (permalink)  
Old Apr 9th, 2008, 21:05
marSoul's Avatar
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 422
Blog Entries: 2
Thanks: 6
Thanked 4 Times in 4 Posts
Re: Aligning menu blocks horizontally

I have a tutorial about this in my weblog, maybe it can help you :
http://blog.datisdesign.com/2008/01/...tion-with-css/
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Reply With Quote
  #3 (permalink)  
Old Apr 9th, 2008, 21:19
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Aligning menu blocks horizontally

Slightly off topic.

Nice site Marsoul.

On topic.

If Marsoul's tutorial doesn't solve your problem, you may have to post your complete html code and css code to allow us to try and solve your problem.

Cheers

Pat
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aligning Flash Menu Correctly. lilandy Web Page Design 4 Jun 15th, 2008 01:34
Blocks of writing Evilaussie Web Page Design 5 Jul 21st, 2007 13:50
Gradient background appearing in blocks ??? j4mes_bond25 Web Page Design 2 Jul 4th, 2006 15:01
Aligning blocks at the bottom of a containing block nomis80 Web Page Design 2 Jul 25th, 2005 22:05


All times are GMT. The time now is 13:31.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43