tiagozc Posted February 28, 2007 Share Posted February 28, 2007 hellohow can i do to have my page align in the horizontal and vertical?i try but it doesn't workmy css:* { font-family: Verdana, Arial, Helvetica, sans-serif; }body { vertical-align: middle; text-align: center; margin: 0px; }#pagina { margin: auto; width: 778px; height: 200px; background-color: #000000;}my page:<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><link href="/estilos/pagina.css" rel="stylesheet" type="text/css" /><title>Untitled Document</title></head><body><div id = "pagina"></div></body></html>thank you Link to comment Share on other sites More sharing options...
jlhaslip Posted February 28, 2007 Share Posted February 28, 2007 We need the css file to look at, please. Link to comment Share on other sites More sharing options...
tiagozc Posted February 28, 2007 Author Share Posted February 28, 2007 We need the css file to look at, please.my css file is writing above, look Link to comment Share on other sites More sharing options...
vchris Posted February 28, 2007 Share Posted February 28, 2007 to align horizontally:body { text-align: center; }#container { margin: 0 auto; text-align: left; }I'm not sure vertically. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now