The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Design
> CSS Help
|
Width on menu
Discuss Width on menu in the CSS Help forum on Dev Shed. Width on menu Cascading Style Sheets (CSS) forum discussing all levels of CSS, including CSS1, CSS2 and CSS Positioning. CSS provides a robust way of applying standardized design concepts to your web pages.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

April 16th, 2012, 12:35 PM
|
|
Registered User
|
|
Join Date: Apr 2012
Posts: 14
Time spent in forums: 4 h 54 m 24 sec
Reputation Power: 0
|
|
|
Width on menu
Problem solved.
|

April 16th, 2012, 01:15 PM
|
|
|
|
Well first, for things to render correctly from browser to browser, the page needs a doctype, which your link does not. In fact, your link doesn't have a <head>, <body>, etc. If you're using this as an include file, you should show us the page it's being included in.
Second, if you want the width to be 931px, you shouldn't set it to 100% elsewhere, which you're doing in the CSS above and attempting to do (incorrectly) in the HTML below.
|

April 16th, 2012, 02:56 PM
|
|
Registered User
|
|
Join Date: Apr 2012
Posts: 14
Time spent in forums: 4 h 54 m 24 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by rdoyle720 Well first, for things to render correctly from browser to browser, the page needs a doctype, which your link does not. In fact, your link doesn't have a <head>, <body>, etc. If you're using this as an include file, you should show us the page it's being included in.
Second, if you want the width to be 931px, you shouldn't set it to 100% elsewhere, which you're doing in the CSS above and attempting to do (incorrectly) in the HTML below. |
Well, the irony about this is that I only wrote 100% becaus I thought it would help making it only 931 px.
Then I realized that it did nothing, though I forgot to erase it..
I do have a <head>& <body>, an entire website actually, but I did not give you the link to it since it's not done and I would not like anyone to see it yet since it is sort of failed and I have not setup my real domain yet.
But if it does help you - helping me - (lol) than here is the link: *I HAVE NOW REMOVED THE LINK BECAUSE MY PROBLEM IS SOLVED*
It is only a test-version (as you can see) and I would not like my (incredibly short lol) source-code copied and pasted here, only the menu-code.
Is it possible to fix my menu? Or do I have to erase everything? :3
|

April 16th, 2012, 04:05 PM
|
|
|
|
I tested it on all the browsers I have access to (IE8, Safari 5 and Firefox 11) and the menu is exactly the same width on all of them.
|

April 17th, 2012, 06:06 AM
|
|
Registered User
|
|
Join Date: Apr 2012
Posts: 14
Time spent in forums: 4 h 54 m 24 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by rdoyle720 I tested it on all the browsers I have access to (IE8, Safari 5 and Firefox 11) and the menu is exactly the same width on all of them. |
Yeah, but it doesn't work with IE9 (not 8) - unless you install a special fix for it and I don't think very many people do that :S
|

April 17th, 2012, 08:24 AM
|
|
|
|
I don't have IE9 here so I can't verify that. I don't know of a reason why IE9 would display any differently -- maybe someone with it will jump in.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
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
|
|
|
|
|