/    Sign up×
Community /Pin to ProfileBookmark

Problem with resolution / browsers

Hey, Everything was going good with my website until i sent the url link to a friend who was using a smaller resolution to me (mine is 1400 x 900) and suddenly things got complicated.

I cant seem to figure out how to make it so the site is able to be used in different browsers and also different resolutions.

here is my css code:

[CODE]body {
margin:0px; padding:0px;
background-color:#003333;
font-family:Arial, Helvetica, sans-serif;
}
#bar{
background:url(images/background_slice.jpg) repeat-x #000000;
}
#container{
background:url(images/background_main.jpg) no-repeat;
min-height:800px;
width:1000px;
position:center;
}
body {
margin:50px 0px; padding:0px;
text-align:center;
}

#Content {
width:500px;
margin:0px auto;
text-align:left;
padding:15px;
border:1px dashed #333;
background-color:#eee;
}

/*
Menu / Banner Positioning
*/

#banner { position:absolute; top:134px; left:183px; }

ul#menu {
margin:0px; padding:0px;
position:absolute; top:110px; left:194px;
}

ul#menu li{
margin:0px; padding:0px;
list-style:none;
margin-right:10px;
font-size:12px;
font-family: Arial;
text-transform:uppercase;
display:inline;
}
ul#menu li a{
text-decoration:none;
color:#cc9900;
}
ul#menu li a:hover {
text-decoration:none;
color:#ffffff;
}
body {
margin:0px; padding:0px;
background-color:#11090a;
font-family:Arial, Helvetica, sans-serif;
}
#outside_container {
background:url(images/background_slice.jpg) repeat-x #ffffff;
}
#container {
background:url(images/background_main.jpg) no-repeat;
min-height:800px;
}
/*
Footer
*/
#footer {
border-top:0px solid #000000;
padding:28px 48px 50px 50px;
color:#666666;
font-size:12px;
line-height:15px;
}
#footer img {
float:left;
margin-right:10px;
}
#footer span {
display:block;
float:left;
width:250px;
}
#footer a {
color:#000000;
text-decoration:none;
}
#footer a:hover { color:#666666;
}
/*
Content
*/
#content {
padding-top:420px;
padding-left:360px;
width:815px;
color:#000000;
font-size:13px;
line-height:20px;
text-align: center;

}
.column1 { float:left; width:360px; margin-right:30px; }

[/CODE]

Anyone got any ideas? cheers in advance

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@FangDec 19.2008 — [I]position:center;[/I] is not valid

I assume the banner does not align with the content?

Without the html we can only guess at the problem.
Copy linkTweet thisAlerts:
@rAPTUREEEauthorDec 20.2008 — Sorry the html code for the index page is as follows:

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<title>Wight Francheville Hotels</title>

<link rel="stylesheet" href="style.css" type="text/css" media="screen" />

</head>

<div align="center">
<body>



<div id="bar">

<div id="container">


<ul id="menu">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="hotels.html">Our Hotels </a></li>
<li><a href="location.html">Location </a></li>
<li><a href="feedback.html">Feedback </a></li>
<li><a href="contact.html">Contact </a></li>
<li><a href="links.html">Links </a></li>
</ul>

<img src="images/banner.jpg" id="banner" />
<div id="offerbanner">

<img src="images/offerbanner.jpg" id="offerbanner" IMG STYLE="position:absolute; TOP:418px; LEFT:183px; WIDTH:279px; HEIGHT:90px" border="0"></a></div>
<div id="offer1">
<a href="/offer1.html"><img src="images/offer1.jpg" IMG STYLE="position:absolute; TOP:518px; LEFT:183px; WIDTH:140px; HEIGHT:110px" border="0"></a></div>
<div id="offer2">
<a href="/offer2.html"><img src="images/offer2.jpg" IMG STYLE="position:absolute; TOP:518px; LEFT:322px; WIDTH:140px; HEIGHT:110px" border="0"></a></div>
<div id="offer3">
<a href="/offer3.html"><img src="images/offer3.jpg" IMG STYLE="position:absolute; TOP:628px; LEFT:183px; WIDTH:140px; HEIGHT:110px" border="0"></a></div>
<div id="offer4">
<a href="/offer4.html"><img src="images/offer4.jpg" IMG STYLE="position:absolute; TOP:628px; LEFT:322px; WIDTH:140px; HEIGHT:110px" border="0"></a></div>


<div id="content">

<img src="images/history.jpg" id="text" />




<div class="column1">
<h2>Wight Francheville brand</h2>
<p>The company was made in January 1989 by the co-owners, Steve Barfleet and Richard Howard, their main aim was
to provide a different type of hotel for the customer rather than making it a slow and painful process of
finding a cheap hotel in scotland they offered an alternative. </p>
</div>
</div>

</div>
<div id="footer">

<img src="images/footer_logo.jpg" />

<span id="footer_text">
Made for a University Project
<p>By </a>
</p>
</span>
</div>
</body>

</html>

[/CODE]
Copy linkTweet thisAlerts:
@felgallDec 20.2008 — The content of your page doesn't match the doctype - align="center" is not valid for a strict doctype.

Also you can't have a div outside of the body.

You might start by validating your HTML and fixing those errors and then do the same for the CSS.
Copy linkTweet thisAlerts:
@rAPTUREEEauthorDec 21.2008 — okay thanks what the best way to validate it?
Copy linkTweet thisAlerts:
@Hen_AsrafDec 21.2008 — http://validator.w3.org/ - start with that.
×

Success!

Help @rAPTUREEE spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...