Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 22, 2012, 03:09:15 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155365
Posts in
21695
Topics by
7729
Members
Latest Member:
piset
WebsiteBaker Community Forum
English
Templates, Menus & Design
(Moderator:
Argos
)
All css2 centrered
Pages: [
1
]
Go Down
Author
Topic: All css2 centrered (Read 1197 times)
styrbaek
Offline
Posts: 8
All css2 centrered
«
on:
June 16, 2008, 06:43:17 AM »
Does anyone know if it is possible to center the all css2 menu.
I have tried everything (it think), but I can only get the menu to begin at the center.
Logged
hrioo
Offline
Posts: 64
Re: All css2 centrered
«
Reply #1 on:
June 16, 2008, 09:42:01 AM »
You have to specify a width for your <div> and apply left & right auto margins.
In your screen.css change the #navContainer to:
#navContainer {
width:748px;
clear:both;
background-color:#666;
border-right:1px solid #000;
border-left:1px solid #000;
border-bottom: 1px solid #000;
}
and change your #nav & #nav ul like so:
#nav {
width:480px;
margin: 0 auto;
height: 1.68em;
background: #666;
}
#nav ul {
list-style-type: none;
font-size: 81%;
text-transform: uppercase;
}
You will probably have to adjust width:480px; to approximate width of your menu.
Logged
www.FolioPages.com
- Web design & solutions
styrbaek
Offline
Posts: 8
Re: All css2 centrered
«
Reply #2 on:
June 16, 2008, 10:14:54 AM »
Thanks a lot.
But is it possible to do this without setting at specifig width of #nav. Else I have to change my css everytime I ad a new menuitem
Logged
hrioo
Offline
Posts: 64
Re: All css2 centrered
«
Reply #3 on:
June 16, 2008, 11:31:13 AM »
This might be what you're looking for :
http://www.tyssendesign.com.au/examples/centred-suckerfish2.html
Logged
www.FolioPages.com
- Web design & solutions
styrbaek
Offline
Posts: 8
Re: All css2 centrered
«
Reply #4 on:
June 17, 2008, 07:00:10 AM »
YES!!!! That was just what I was looking for, nice and simple.
I used the examble with tables istead of inline and it works perfektly.
Thanks
Logged
hrioo
Offline
Posts: 64
Re: All css2 centrered
«
Reply #5 on:
June 17, 2008, 07:39:53 AM »
You're welcome. Using tables is a lot easier sometimes but probably not as much fun!
Logged
www.FolioPages.com
- Web design & solutions
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...