Placing a div off-center
Posted: 31 July 2009 04:29 PM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2009-07-31

I am trying to set a div slightly off-center, while maintaining a static width.
I included an example of where I want the div placed
I achieved the exact placing I am trying for in 1024x768 using margins, but I want the borders to expand in higher resolutions, so the content doesn’t become stretched.

#div1 {
Background-color#FFFFFF;
margin-left22%;
margin-right10%;
min-height150px;
border5px solid #E9003A;

That’s the margins I used, if it helps.
Thanks for the help, I hope it’s plausible.

Profile
 
 
Posted: 05 August 2009 04:27 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  19
Joined  2009-07-27

I will play devil’s advocate and ask why you are using a XHTML doctype when your content is php generated. You might be better off using 4.01 transitional. You may want to read this thread about selecting the correct doctype. Remember, XHTML is not the next evolution of HTML. In essence, it is a format unto itself. You may be devoting time to something you need not being doing.


Search engine optimization

Profile
 
 
Posted: 06 August 2009 12:19 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  1
Joined  2009-08-06

Wow! Been waiting for this! Thanks guys. Thanks Barry.
comparatif simulation taux credit auto - Taux crédit auto. Comparatif des offres! Les meilleurs taux crédit auto sont sur le net !comparatif simulation taux credit auto

Profile
 
 
   
 
 
‹‹ Help with Rollovers      ul tag ››