alphynityx Posted October 22, 2009 Report Share Posted October 22, 2009 Hey, does anyone know how to center align an entire site? My site is currently left aligned. Please help. Thanks Quote Link to comment Share on other sites More sharing options...
Andrea Posted October 22, 2009 Report Share 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 Quote Link to comment Share on other sites More sharing options...
falkencreative Posted October 22, 2009 Report Share 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. Quote Link to comment Share on other sites More sharing options...
AstonishDesigns Posted October 22, 2009 Report Share 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 Quote Link to comment Share on other sites More sharing options...
alphynityx Posted October 23, 2009 Author Report Share 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? Quote Link to comment Share on other sites More sharing options...
Andrea Posted October 23, 2009 Report Share 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. Quote Link to comment Share on other sites More sharing options...
alphynityx Posted October 23, 2009 Author Report Share Posted October 23, 2009 did you mean something like this? ABC DEF Quote Link to comment Share on other sites More sharing options...
falkencreative Posted October 23, 2009 Report Share 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. Quote Link to comment Share on other sites More sharing options...
alphynityx Posted October 23, 2009 Author Report Share Posted October 23, 2009 yea, thanks, but it didnt work for me..it would end up looking like this ABC DEF Quote Link to comment Share on other sites More sharing options...
alphynityx Posted October 23, 2009 Author Report Share Posted October 23, 2009 does it not work with a link and with text? Quote Link to comment Share on other sites More sharing options...
Andrea Posted October 23, 2009 Report Share 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? Quote Link to comment Share on other sites More sharing options...
alphynityx Posted October 23, 2009 Author Report Share 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 Quote Link to comment Share on other sites More sharing options...
alphynityx Posted October 29, 2009 Author Report Share 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. Quote Link to comment Share on other sites More sharing options...
Wickham Posted October 29, 2009 Report Share 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.