Web Hosting Deals Holiday Logo Design Webcam Chat Website Header Templates Register domain Search Engine Optimisation Web Hosting
Go Back   Talk Mania Forum > Website Design

Website Design HTML Reference and CSS , DHTML, XML. Browser Compatibility questions and answers,
Your source for basic website builder knowledge

 Image
Buy Sell Downloads

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2008, 01:23 AM
Junior Member
 
Join Date: Feb 2008
Posts: 6
samwilliamh is on a distinguished road
Aligning a div

I need a bit of help. I've completed this website for a client but have a slight problem. If I try to align the container div using left: 10%, it doesn't work on 1024x768 resolution. I've also tried margin: auto; but everything is position: absolute. The website is at http://visualsirkus.com/site/ so can anyone give me a hand with this?

Thanks

Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 07:21 AM
Junior Member
 
Join Date: Mar 2008
Posts: 13
NikeAirforce1s is on a distinguished road
Hmmm, aiight in your css, try having this at the top

Code:
* {
margin: 0;
padding: 0;

}
and add this to your div container

Code:
margin: 0 auto;
You shouldn't use that BG at all.
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 11:13 AM
VIP Member
 
Join Date: Mar 2008
Location: United Kingdom
Posts: 163
Robbb is on a distinguished road
Send a message via MSN to Robbb Send a message via Skype™ to Robbb
there is another option.
When you are on the html page, inserting the tag, instead of
Code:
<div id="mydiv">
you could do
Code:
<div id="mydiv" align="center">
but as nike said, the best way is to in the stylesheet have
Code:
mydiv {
margin: 0 auto;
}
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 11:59 AM
Junior Member
 
Join Date: Feb 2008
Posts: 6
samwilliamh is on a distinguished road
Thanks guys! I'll have a crack at it I know that background sucks, but its what they want. We did have an old one so I need to talk them back into using it.

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +2. The time now is 02:51 PM.


Fake ID

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC8
Forums Copyright © Talk-Mania.com