This is a discussion on "how can i center this?" within the Web Page Design section. This forum, and the thread "how can i center this? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
how can i center this?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
how can i center this?
hi i have this menu but want to center it but want it to stay relitive to the screen size can anyone help me on this?
the code i have so far is:
Last edited by Ed; Feb 25th, 2008 at 17:02. Reason: Please use [CODE] Tags |
|
|
|
||||
|
Re: how can i center this?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: how can i center this?
sorry the working example can be see at http://www.poker-bingo.net/menu.html cheers.
|
|
|||
|
Re: how can i center this?
hmm that didnt seem to do it ??
|
|
|||
|
Re: how can i center this?
First of all, Validate your website.
Jack, you cannot use margin: 0 auto on a div with no width. Also, make sure you actually implement the suggested changes. With my suggested changes, your code should look like this:
You may want to read up on HTML and CSS Practices before you get ahead of yourself. Please post to let us know the outcome. Thanks, Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
|
|||
|
Re: how can i center this?
yea i know all about web standers i just put that together as a quick online example for people to help me with.
couple of issues with your modifications: 1. the bar isnt going all the way accross the page anymore 2. its still not in the center of the bar heres what i got now:
Last edited by Jack Franklin; Feb 25th, 2008 at 07:11. Reason: Added [/code] tag in your post so the text could display properly. |
|
|||
|
Re: how can i center this?
I wish I have the Mod ability to wrap all the code inside the tag
Make your wrapper width to something smaller so they can be positioned center. Something like {width: 50%;}
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Div bg images..will not center? | jahphill | Web Page Design | 5 | Jun 2nd, 2008 09:03 |
| center | alexgeek | Web Page Design | 1 | Aug 2nd, 2007 03:30 |
| Why Cant i center | Innes | Web Page Design | 7 | Jun 20th, 2007 20:37 |
| Center a Swf Help?? | nutbolt | Web Page Design | 20 | Apr 9th, 2007 10:21 |
| just want to center this | ragingmon | Web Page Design | 9 | Dec 29th, 2006 18:07 |