Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old April 7th, 2009, 06:33 AM   #1
New Member
 

Join Date: Apr 2009
Location: mansfield
Age: 20
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 noobwebdesign is on a distinguished road
Unhappy Position for all screen resolutions?

Hi all,

Just trying to make a smart website fora friend although having problems with different screen resolutions.

I am making the site using dreamweaver on a 1024x768 px and it looks fine on that resolution although viewing it through different resolutions it looks pretty bad - all goes to one side etc.

I would like it centered for all screen resolutions if possible. I have tried various solutions although can't seem to get it to work, maybe i am doing something wrong...
noobwebdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 7th, 2009, 07:04 AM   #2
New Member
 

Join Date: Aug 2008
Location: England
Posts: 39
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 Pukoon is on a distinguished road
Re: Position for all screen resolutions?

What have you tried? Post your code.
Pukoon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 7th, 2009, 07:40 AM   #3
New Member
 

Join Date: Apr 2009
Location: mansfield
Age: 20
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 noobwebdesign is on a distinguished road
Re: Position for all screen resolutions?

Well at the min i have got a container which is happily centering on all screen resolutions. The thing is I have four div's that need to go inside it.

#Table, #maincontent, #animatedbanner & #footer

I can't seem to nest them.

Is this right?

<div id="container">
<div id="maincontent">
<h1> Main Content </h1>
<p>Lorem ipsum </p>
</div>
<div id="animatedbanner"></div>
<div id="footer"></div>
</div>

the #Table is the naviagation section or a header, which i made from a sliced image in photoshop and now it seems to have its own javascript code because of the roll over buttons.. so not sure how to nest that into the container either.

this may sound very confusing so any help is great.

the CSS is:

@charset "utf-8";
/* CSS Document */
body {
width:100%;
height:auto;
margin:0;
padding: 0;
background-color:#000;
}
#container{
position:relative
width:800px;
margin: 0 auto;
padding:0;
margin:0 auto;
border:1px solid;
height: 568px;
border:1px solid #FFF;
visibility: visible;
width: 750px;
}
#Table{
position: absolute;
height: 70px;
width: 561px;
left:227px;
top: 15px;
right: 106px;
bottom: 15px;
margin:0px;
border:0px;
}
#maincontent{
position:relative;
width:36em;
height:30em;
left:1em;
top:99px;
text-align:left;
padding:0px;
margin:0;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
border:solid 1px #CCC;
color:#FFF;
}
#footer{
position:absolute;
width:562px;
left:226px;
height:35px;
padding:0px;
margin:0 auto;
top:526px;
border:#CCC solid 1px;
}
#animatedbanner{
position:absolute;
width:7em;
height:414px;
top:99px;
left:674px;
border:#CCC solid 1px;
margin:0 auto;
text-align: right;
}

i have also been playing with the px, em, %, on width etc trying to solve my problem so you may notice that some may not be consistent
noobwebdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 7th, 2009, 09:04 AM   #4
New Member
 

Join Date: Aug 2008
Location: England
Posts: 39
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 Pukoon is on a distinguished road
Re: Position for all screen resolutions?

Something like is?

HTML Code:
<div id="wrapper">

<div id="banner">banner</div>
<!-- end banner -->

<div id="maincontent">
<h1>Main Content</h1>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
</div>
<!-- end maincontent -->

<div id="Table">
<p>Table</p>
<p>Table</p>
<p>Table</p>
<p>Table</p>
</div>
<!-- end Table -->

<div id="footer">
<p>footer</p>
<p>footer</p>
</div>
<!-- end footer -->

</div>
<!-- end wrapper -->
Code:
* {
margin:0;
padding:0;
}

body {
text-align:center;
}

#wrapper {
height:auto;
width:800px;
margin:0 auto;
border:1px solid red;
text-align:left;
}

#banner {
height:100px;
width:auto;
}

#maincontent {
height:auto;
width:auto;
}

#footer {
height:auto;
width:auto;
}

#Table {
height:auto;
width:auto;
}
Pukoon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 7th, 2009, 10:26 AM   #5
New Member
 

Join Date: Apr 2009
Location: mansfield
Age: 20
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 noobwebdesign is on a distinguished road
Re: Position for all screen resolutions?

Thanks for the posts, your on the right lines.

im trying to position the #maincontent to the left of the #animatedbanner with the #Table (the Table is a sliced up navigation bar made from photoshop) just above both of these. then the #footer just underneath the #maincontent and the #animatedbanner

Sorry if this sounds too confusing, i can't post a link at the moment for you to view it.

at the moment i have a #wrapper that is centered, the #Table (navigation bar) is also in its desired place (top and centered). the #maincontent is also in its correct position, just underneath the #Table. so i must be doing something right... but now the #animated banner just won't go next to the #maincontent.....? and it's the 'Top' what seems to be the problem. it doesn't seem to want to go up and next to the #maincontent it's just sitting at the bottom of it with the 'Top' not really responding...

Does anyone even understand this post lol?

Apologies
noobwebdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS positioning with different screen resolutions kelanne HTML, XHTML and CSS 2 December 7th, 2008 06:52 PM
Need help with different resolutions dcampbell18 Your Design and Layout 5 May 7th, 2008 01:46 AM
centered css site in all screen resolutions forry HTML, XHTML and CSS 23 February 21st, 2008 06:44 AM
Designing Web Sites For All Screen Resolutions shinesmithdas Your Design and Layout 8 November 17th, 2007 05:27 PM
Problem with different resolutions dawg9 HTML, XHTML and CSS 7 February 22nd, 2007 11:04 PM


Search Engine Optimization by vBSEO 3.2.0 RC8