English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Im having problems with my CSS as I've only just started.
I want my menu to be in the center just below the name but It keeps going to the left and even if I enter

or
within the HTML it still does not work so I've uploaded the files to my website so have a look at the css and html and try and give me some help.

HTML page
http://www.wiiscript.co.uk/beta/test.html

CSS
http://www.wiiscript.co.uk/beta/test.css

Please give help ASAP thanks.

If you wish to download it to try and fix it on your computer first heres all the files needed just right click and save as:
http://www.wiiscript.co.uk/beta/test.html
http://www.wiiscript.co.uk/beta/test.css
http://www.wiiscript.co.uk/beta/images/background.jpg
http://www.wiiscript.co.uk/beta/images/button.jpg

2007-04-29 04:33:58 · 4 answers · asked by sbraidley 3 in Computers & Internet Programming & Design

4 answers

Without downloading I will suggest you try to define the div with:
margin-left: auto; margin-right: auto; text-align: center;

This centers the text *that is inside* the div and centers the div itself *inside* its parent.

2007-04-29 07:15:35 · answer #1 · answered by fjpoblam 7 · 0 0

In your body tag, center your page contents
margin: 0 auto
text-align: center

Then change the text-align in your divs.

The margin code works for all browsers except IE. The text-align code is an IE hack.

2007-04-29 13:10:41 · answer #2 · answered by dubbarob 5 · 0 0

css positioning is either absolute or relative based on the pixel positions of elements.

see:
http://www.theonestopwebsiteshop.com/web-design/css-layers.htm
http://www.w3schools.com/css/css_positioning.asp

2007-04-29 11:47:55 · answer #3 · answered by BigJohnny 4 · 0 0

use
textalign:center;


hwh,
http://search.yahoo.com/search?p=dwikristianto

2007-04-29 11:41:26 · answer #4 · answered by steamboatid 2 · 0 1

fedest.com, questions and answers