|
|
 |
November 19th, 2007, 10:22 AM
|
#1
|
|
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
[SOLVED] css menu width issue
Hi everyone.
Could somebody have a look at my menu that i have done in css....
http://www.design365.co.uk/sef/home.htm
The image im using for the rollovers is 115 pixels wide but i dont understand why its not displaying the whole image. Any help would be appreciated.
Thanks
|
|
|
November 19th, 2007, 10:35 AM
|
#2
|
|
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: css menu width issue
add a display: block;
also ... instead of using 2 images, use only one and change it with the background-position property ... see this tutorial from the Creative Coding newsletter
CSS Hover Effects
|
|
|
November 20th, 2007, 05:53 AM
|
#3
|
|
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: css menu width issue
Hi Karinne, thanks for the tutorial its working ok.....
http://www.design365.co.uk/sef/home.htm theres just 2 things...
1. How do i position the text alongside the red square?
2. How do i push the whole menu left so its more centralised?
Thankyou
|
|
|
November 20th, 2007, 06:13 AM
|
#4
|
|
WebForumz Member
Join Date: Oct 2007
Location: 'HD' - Soon to be 'FY' home. ;)
Age: 33
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: css menu width issue
Use this CSS code
#banner_middle {
width:746px;
margin:auto;
}
to align the banner to the middle of the screen so it flows with the container below.
Aligning the text to be at the right of the square is a little more complicated.
You need to look into 'line height' to vertically align the text and add some left padding to the 'li' to push it across.
Last edited by Nortus; November 20th, 2007 at 06:20 AM..
|
|
|
November 20th, 2007, 06:40 AM
|
#5
|
|
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: css menu width issue
Hi Nortus, thanks for the advice but i want the banner to go all across. I just need to put the text in the right place in the buttons and move them all across.
|
|
|
November 21st, 2007, 10:26 AM
|
#6
|
|
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: css menu width issue
Link doesn't work anymore.
|
|
|
November 22nd, 2007, 08:10 AM
|
#7
|
|
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: css menu width issue
Hi karrine.
Sorry new link....
http://www.design365.co.uk/sef/home.html
How do i position the text? Nothing seems to be working for me lol
|
|
|
November 22nd, 2007, 09:49 AM
|
#8
|
|
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: css menu width issue
is anybody able to help? ive tried padding, margin, text align etc but the text isnt moving
|
|
|
November 22nd, 2007, 10:03 AM
|
#9
|
|
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: css menu width issue
Make these changes
Code:
ul#nav li a {
color: #ffffff;
font-size: x-small;
font-weight: bold;
font-family: arial;
width:95px;
height:23px;
padding 8px 0 0 25px;
display:block;
text-decoration:none;
background: url(images/button.gif) no-repeat 0 0;
}
|
|
|
November 22nd, 2007, 10:13 AM
|
#10
|
|
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: css menu width issue
Thanks Karinne your a life saver, yet again!
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Menu issue
|
mcdanielnc89 |
HTML, XHTML and CSS |
5 |
February 12th, 2008 04:06 AM |
|
Drop down menu issue
|
Richowls |
JavaScript |
1 |
September 17th, 2007 09:00 AM |
|
width problem, menu appears 'squashed'
|
@lun |
HTML, XHTML and CSS |
4 |
November 18th, 2006 08:56 AM |
|
Dropdown Menu Issue
|
greenphoenix |
HTML, XHTML and CSS |
2 |
August 22nd, 2006 05:17 PM |
|
menu/list width question
|
swiftmed |
HTML, XHTML and CSS |
3 |
May 19th, 2006 10:05 AM |
|