Jump to content

How to center/middle website


maxibaw
 Share

Recommended Posts

Hey! Does anyone of you know how I can center my website + navigation/menu ? ive tried the css code float left/position middle, but that didnt work. I know the Home, About, Service site is middle/center, but the problem is on the portfolio/gallery site,My website adress is: http://www.hsrysstad.com/katrine2 I really hope someone can help me. I got exam Wednesday so kinda want to get it down before so I know it. Thx :D

Edited by maxibaw
Link to comment
Share on other sites

You are using new html5 elements within a doctype of xhtml strict

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="[url=""]http://www.w3.org/1999/xhtml[/url]" xml:lang="[url=""]en[/url]">

on your other pages you have html5 Doctype

<!DOCTYPE HTML><html>

Link to comment
Share on other sites

html5http://w3schools.com/html/html5_intro.asphttp://w3schools.com/html/html5_new_elements.asp Which don't work when used with older HTML 4.01 or XHTML 1.0 Doctypes, for example see the new html5 element <nav> from your page listed here http://w3schools.com/tags/ref_html_dtd.asp it clearly shows it is not supported with pages using anything else but HTML5 doctype

<!DOCTYPE HTML><html>

http://w3schools.com/tags/tag_doctype.asp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...