alphynityx Posted October 22, 2009 Report Posted October 22, 2009 Hey, does anyone know how to center align an entire site? My site is currently left aligned. Please help. Thanks
Andrea Posted October 22, 2009 Report Posted October 22, 2009 (edited) Put it in a div wrapper WITH a set width and give it a right and left margin of auto. Edit - instead of WITH, I had written 'or' which makes no sense and was a typo. Edited October 22, 2009 by Andrea
falkencreative Posted October 22, 2009 Report Posted October 22, 2009 I can't give you specific advice without knowing exactly what your site looks like, but most often it's done by adding "margin: 0 auto;" to the wrapper div. This adds "auto" left and right margins, centering the site. Post a link and I should be able to provide you the exact code.
AstonishDesigns Posted October 22, 2009 Report Posted October 22, 2009 CSS: #page-container {width: 800px; margin: 0 auto;} // specify a width and set horizontal margins to auto #content {font-size: 12px;} // just an example HTML: Some content here
alphynityx Posted October 23, 2009 Author Report Posted October 23, 2009 one more thing. how can i put text side by side with one another without it wrapping together to make one big paragraph?
Andrea Posted October 23, 2009 Report Posted October 23, 2009 You could put it in separate divisions - float one right, one left. - Or float one to one side and position the other.
alphynityx Posted October 23, 2009 Author Report Posted October 23, 2009 did you mean something like this? ABC DEF
falkencreative Posted October 23, 2009 Report Posted October 23, 2009 did you mean something like this? ABC DEF Yes, that is one way to do it. The id value would need "" around it though.
alphynityx Posted October 23, 2009 Author Report Posted October 23, 2009 yea, thanks, but it didnt work for me..it would end up looking like this ABC DEF
alphynityx Posted October 23, 2009 Author Report Posted October 23, 2009 does it not work with a link and with text?
Andrea Posted October 23, 2009 Report Posted October 23, 2009 Don't start an ID name with a number. Just so you see what you have, give each div a different background color, so you can see where they are - my guess is they are too wide and don't fit next to each other - but the color should make that more clear. Is there a link to your page?
alphynityx Posted October 23, 2009 Author Report Posted October 23, 2009 wow..ok thanks so much. i got it. i just had to change some of the html in the beginning of the body. thank u thank u
alphynityx Posted October 29, 2009 Author Report Posted October 29, 2009 thanks everyone, you've been great help. I would put a link up to the webpage, but it's currently pw protected by the company. I'm just trying to get everything working properly before they make it live. Can anyone give me some info on dynamically generated title tags and meta tags. I've been trying to read some stuff online, but i can't seem to comprehend. thanks again.
Wickham Posted October 29, 2009 Report Posted October 29, 2009 Can anyone give me some info on dynamically generated title tags and meta tags. I've been trying to read some stuff online, but i can't seem to comprehend. thanks again. I'm not exactly sure what you mean, but you could put the meta tag content like this Company A website in a separate file called, say, titleandmeta.inc and then put this in every page head section instead of the tags <?php include ("titleandmeta.inc"); ?> and rename every main page with a .php filename extension; then you only have to edit the .inc page to change the display.
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