School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,406 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,585 people online right now. Registration is fast and FREE... Join Now!




Center design on all resolutions

 

Center design on all resolutions

Public Designs

13 Jun, 2009 - 09:25 PM
Post #1

D.I.C Head
**

Joined: 8 Nov, 2008
Posts: 111


My Contributions
Here is what I have so far. I can get it centered in some of the larger resolutions but then it is too far to the right on smaller ones. Can anybody help me make this compatible for all resolutions please?
CODE


* { padding: 0; margin: 0; }

#designs{
    width: 100%;
    
}

#space {

margin-left:5%;
margin-right: 10%;
}


#navigation {
    height:39px;
}
#navigation li {
    display:inline;
}
#navigation li a {
    float:left;
}

body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
background:#FFF url('images/bg.jpg')
}
#wrapper {
margin-left: 100px;
width: 900px;
}
#header {
width: 900px;
color: #333;
padding: 0px;

height: 100px;
margin-top: 0px;
background:#FFF url('images/headerbg.jpg') repeat-x; width: 890 px;  height:auto;
}



#adcontent {
width: 750px;
height: 100px;

margin-left: 100px;

}

#headers {
width: 750px;
height: 60px;
font-family:Arial, Helvetica, sans-serif;
margin-left: 100px;

}

#end {

font-family:Arial, Helvetica, sans-serif;
margin-left: 91px;

}


#top {

font-family:Arial, Helvetica, sans-serif;
margin-left: 0px;
margin-top: 10px;

}




.wrapper
{
    width: 430px;
    height: auto;
     margin-left: 30px;
    
}

.top, .bottom
{
    clear: both;
    width: 100%;
    height: auto;
}

.topLeft, .topRight, .bottomLeft, .bottomRight
{
    width: 215px;
    height: auto;            
}

.topLeft, .bottomLeft
{
    float: left;
}

.topRight, .bottomRight
{
    float: right;
}

.topLeft
{
    
}

.topRight
{
        
}

.bottomLeft
{
    
}

.bottomRight
{
      
}

#infobox {

height: 500px;
background:#FFF url('images/box.jpg');
margin-left: 100px;


}

#infobox.img {


margin-left: 100px;


}


#uploadbox {
width: auto;
height: 350px;
margin-left: 60px;

}
#content {
width: 900px;
color: #333;

background:#FFF url('images/cbg.png') repeat;
margin-left: 70 px;
padding: 0px;
height: auto;

}

img {
    border:0 none;
}

.left {
    float:left;
}
.right {
    float:right;
}
#upload{
    margin-left: 50px;
}

#footer {
width: 780px;
color: #333;
float: right;
color: #FFF;

margin-left: 0px;
padding: 10px;
}
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dean Scream</title>
<link rel="stylesheet" type="text/css" href="main2.css" />
<style type="text/css">
/*<![CDATA[*/
div.img
{
  margin: 2px;
  border: 1px solid #0000ff;
  height: auto;
  width: auto;
  float: left;
  text-align: center;
  background:#FFF url('images/cbg.png') repeat;
margin: 0px 0px 0px 0px;
padding: 0px;

}      
div.img img
{
  display: inline;
  margin: 3px;
  border: 1px solid #ffffff;
  background:#FFF url('images/cbg.png') repeat;
margin: 0px 0px 0px 0px;
padding: 0px;
height: auto;
}
div.img a:hover img {border: 1px solid #0000ff;}
div.desc
{
  text-align: center;
  font-weight: normal;
  width: 120px;
  margin: 2px;
  background:#FFF url('images/cbg.png') repeat;
margin: 0px 0px 0px 0px;
padding: 0px;
height: auto;
}
/*]]>*/
#wrapper #content table tr td .infobox p {
    text-align: right;
}
#wrapper #content table tr td .infobox p {
    text-align: center;
}
</style>
</head>
<body>
<!-- Begin Wrapper -->
<div id="designs">
<div id="space">
<div id="wrapper">
<div id="top"><img src="images/top.jpg" alt="top" /></div><!-- Begin Header -->
<div id="header"><img src="images/logo.png" alt="logo" /> <img src="images/headeradbox.png" alt="ad" /></div>
<!-- End Header -->
<!-- Begin Naviagtion -->
<div id="navigation">
<ul>
<li><a href="#"><img src="images/upload.png" alt="home" /></a></li>
<li><a href="#"><img src="images/browse.png" alt="services" /></a></li>
<li><a href="#"><img src="images/desktop.png" alt="forums" /></a></li>
<li><a href="#"><img src="images/terms.png" alt="about" /></a></li>
<li><a href="#"><img src="images/privacy.png" alt="order" /></a></li>
<li><a href="#"><img src="images/contact.png" alt="contact" /></a></li>
<li><a href="#"><img src="images/navfoot.png" alt="contact" width="234" /></a></li>
</ul>
</div>
<!-- End Naviagtion -->
<!-- Begin Content -->
<div id="content">
<div id="uploadbox"><img src="images/uploadbox.png" alt="google" /></div>
<div id="adcontent"><img src="images/google.png" alt="google" /></div>
<div id="headers"><span class="left" style="margin-left: 20px; margin-top: 20px;">Random Images</span>  <span class="right" style="margin-right: 90px; margin-top: 20px;">XOEE Desktop App</span></div>
<table border="0" width="850">
<tr>
<td width="430">
<div class="wrapper">
<div class="top">
<div class="topLeft"><img src="images/green.png" alt="none" /></div>
<div class="topRight"><img src="images/green.png" alt="none" /></div>
</div>
<div class="bottom">
<div class="bottomLeft"><img src="images/green.png" alt="none" /></div>
<div class="bottomRight"><img src="images/green.png" alt="none" /></div>
</div>
</div>
</td>
<td width="400" style="background:#FFFFFF;">
<div class="infobox">
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
    <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
    <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  <p>upload button can go here</p>
  
  <img src="images/button.png" alt="download" style="margin-left: 100px;
  margin-top: 30px; " />
</div>
</td>
</tr>
</table>
</div>
<!-- End Content -->
<!-- Begin Footer -->

<!-- End Footer -->
<!-- End Wrapper --></div>
<div id="end"><img src="images/foot.jpg" alt="footer" /></div>
<div id="footer">? 2009 Xoee.com | All Rights Reserved Privacy Policy Terms of Service</div>
</div>
</div>
</body>
</html>


User is offlineProfile CardPM
+Quote Post


noorahmad

RE: Center Design On All Resolutions

13 Jun, 2009 - 10:13 PM
Post #2

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
try this:
HTML
<style type="text/css">
* { padding: 0; margin: 0; }

#designs{
width: 100%;

}

#space {

margin-left:5%;
margin-right: 10%;
}


#navigation {
height:39px;
}
#navigation li {
display:inline;
}
#navigation li a {
float:left;
}

body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
background:#FFF url('images/bg.jpg')
}
#wrapper {
margin-left: 100px;
width: 900px;
}
#header {
width: 900px;
color: #333;
padding: 0px;

height: 100px;
margin-top: 0px;
background:#FFF url('images/headerbg.jpg') repeat-x; width: 890 px; height:auto;
}



#adcontent {
width: 750px;
height: 100px;

margin-left: 100px;

}

#headers {
width: 750px;
height: 60px;
font-family:Arial, Helvetica, sans-serif;
margin-left: 100px;

}

#end {

font-family:Arial, Helvetica, sans-serif;
margin-left: 91px;

}


#top {

font-family:Arial, Helvetica, sans-serif;
margin-left: 0px;
margin-top: 10px;

}




.wrapper
{
width: 430px;
height: auto;
margin-left: 30px;

}

.top, .bottom
{
clear: both;
width: 100%;
height: auto;
}

.topLeft, .topRight, .bottomLeft, .bottomRight
{
width: 215px;
height: auto;
}

.topLeft, .bottomLeft
{
float: left;
}

.topRight, .bottomRight
{
float: right;
}

.topLeft
{

}

.topRight
{

}

.bottomLeft
{

}

.bottomRight
{

}

#infobox {

height: 500px;
background:#FFF url('images/box.jpg');
margin-left: 100px;


}

#infobox.img {


margin-left: 100px;


}


#uploadbox {
width: auto;
height: 350px;
margin-left: 60px;

}
#content {
width: 900px;
color: #333;

background:#FFF url('images/cbg.png') repeat;
margin-left: 70 px;
padding: 0px;
height: auto;

}

img {
border:0 none;
}

.left {
float:left;
}
.right {
float:right;
}
#upload{
margin-left: 50px;
}

#footer {
width: 780px;
color: #333;
float: right;
color: #FFF;

margin-left: 0px;
padding: 10px;
}
</style>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dean Scream</title>
<link rel="stylesheet" type="text/css" href="main2.css" />
<style type="text/css">
/*<![CDATA[*/
div.img
{
margin: 2px;
border: 1px solid #0000ff;
height: auto;
width: auto;
float: left;
text-align: center;
background:#FFF url('images/cbg.png') repeat;
margin: 0px 0px 0px 0px;
padding: 0px;

}
div.img img
{
display: inline;
margin: 3px;
border: 1px solid #ffffff;
background:#FFF url('images/cbg.png') repeat;
margin: 0px 0px 0px 0px;
padding: 0px;
height: auto;
}
div.img a:hover img {border: 1px solid #0000ff;}
div.desc
{
text-align: center;
font-weight: normal;
width: 120px;
margin: 2px;
background:#FFF url('images/cbg.png') repeat;
margin: 0px 0px 0px 0px;
padding: 0px;
height: auto;
}
/*]]>*/
#wrapper #content table tr td .infobox p {
text-align: center;
}
#wrapper #content table tr td .infobox p {
text-align: center;
}
</style>
</head>
<body>
<!-- Begin Wrapper -->
<div id="designs">
<div id="space">
<div id="wrapper">
<div id="top"><img src="images/top.jpg" alt="top" /></div><!-- Begin Header -->
<div id="header"><img src="images/logo.png" alt="logo" /> <img src="images/headeradbox.png" alt="ad" /></div>
<!-- End Header -->
<!-- Begin Naviagtion -->
<div id="navigation">
<ul>
<li><a href="#"><img src="images/upload.png" alt="home" /></a></li>
<li><a href="#"><img src="images/browse.png" alt="services" /></a></li>
<li><a href="#"><img src="images/desktop.png" alt="forums" /></a></li>
<li><a href="#"><img src="images/terms.png" alt="about" /></a></li>
<li><a href="#"><img src="images/privacy.png" alt="order" /></a></li>
<li><a href="#"><img src="images/contact.png" alt="contact" /></a></li>
<li><a href="#"><img src="images/navfoot.png" alt="contact" width="234" /></a></li>
</ul>
</div>
<!-- End Naviagtion -->
<!-- Begin Content -->
<div id="content">
<div id="uploadbox"><img src="images/uploadbox.png" alt="google" /></div>
<div id="adcontent"><img src="images/google.png" alt="google" /></div>
<div id="headers"><span class="left" style="margin-left: 20px; margin-top: 20px;">Random Images</span> <span class="right" style="margin-right: 90px; margin-top: 20px;">XOEE Desktop App</span></div>
<table border="0" width="850">
<tr>
<td width="430">
<div class="wrapper">
<div class="top">
<div class="topLeft"><img src="images/green.png" alt="none" /></div>
<div class="topRight"><img src="images/green.png" alt="none" /></div>
</div>
<div class="bottom">
<div class="bottomLeft"><img src="images/green.png" alt="none" /></div>
<div class="bottomRight"><img src="images/green.png" alt="none" /></div>
</div>
</div>
</td>
<td width="400" style="background:#FFFFFF;">
<div class="infobox">
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>
<p>upload button can go here</p>

<img src="images/button.png" alt="download" style="margin-left: 100px;
margin-top: 30px; " />
</div>
</td>
</tr>
</table>
</div>
<!-- End Content -->
<!-- Begin Footer -->

<!-- End Footer -->
<!-- End Wrapper --></div>
<div id="end"><img src="images/foot.jpg" alt="footer" /></div>
<div id="footer">? 2009 Xoee.com | All Rights Reserved Privacy Policy Terms of Service</div>
</div>
</div>
</body>
</html>

User is online!Profile CardPM
+Quote Post

firebolt

RE: Center Design On All Resolutions

14 Jun, 2009 - 12:15 AM
Post #3

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,463



Thanked: 75 times
Dream Kudos: 1675
My Contributions
Maybe we should see an example on what is happening. eg. screenshot.
User is offlineProfile CardPM
+Quote Post

Public Designs

RE: Center Design On All Resolutions

14 Jun, 2009 - 10:03 PM
Post #4

D.I.C Head
**

Joined: 8 Nov, 2008
Posts: 111


My Contributions
That almost worked but it is still not working in 1024 by 768. Things are too the right a little bit causing some minor scrolling.
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: Center Design On All Resolutions

15 Jun, 2009 - 01:45 AM
Post #5

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
See an example that I wrote for someone else here, just remove the javascript.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 11:05PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month