We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,787 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Minimize doesnt like my page =-(

Hi, I have just converted my code so that it is using the html5 tags, the pages have validated fine and look good in all browsers, until minimize is hit! everything moves, does anyone have any suggestions, ive tried, position: inline; margin: 0 auto; nothing seems to work? Thanks

CSS

/*browser render HTML 5 elements as a block */
header,footer,section,nav {
    display: block;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

#wrapper {
    margin: 0 auto;
    width: 922px;
}

#head {
    width: 900px;
    color: #333333;
    padding: 10px;
    border: 1px solid #cccccc;
    height: 150px;
    margin: 0 auto;
    background: #b6a799;
    background-image: url(../images/logo.jpg);
    background-position: 140px;
    background-repeat: no-repeat;
}

nav {
    top: 150px;
}
#personal{
    position: absolute;
    top: 130px;
    left: 710px;
    font-style: oblique;
    font-family: "serif";
    color: #f2f2e6;
}
img.float {
    float:left;
    margin: 5px;
}
#about {
        position: absolute;
        top: 200px;
        left: 720px;
}

#content {
    width: 900px;
    color: #333333;
    border: 1px solid #cccccc;
    background: #f2f2e6;
    margin: 0px 0px 5px 0px;
    padding: 10px;
    height: 470px;
    position: absolute;
    top: 190px;
    left: 330px;
}
ul#nav {
    margin: -10px;
    padding: 0;
    list-style: none;
}

ul#nav li {
    display: inline
}

ul#nav li a {
    text-decoration: none;
    padding: 5px 0;
    width: 85px;
    color: #000000;
    float: left;
}

ul#nav li a {
    text-align: center;
    border-right: 1px solid #333333;
    border-bottom: 1px solid #333333;
}
ul#nav li a:hover {
    background-color: #4b3524;
    color: #ffffff;
}


a  {
    border: none;
    text-decoration: underline;
    color: #ffffff
}

ul#grid{
    padding: 0;
    list-style: none;
    margin: 20px auto 0;
    width: 540px;
    float: right;
    top: 130px;
}
#grid li {
    float: left;
    padding: 0;
    margin: 0 5px 10px 5px;
}
#grid li a {
    display: block;
}
#grid li img {
    background-color: white;
    padding: 7px; margin: 0;
    border:  #58595b;
    width: 200px;
    height: 200px;
}
#grid li a:hover img {
    opacity:0.9;filter:alpha(opacity=90);
}

footer {
    color: #333333;
    width: 900px;
    border: 1px solid #cccccc;
    background: #4b3524;
    margin: 0px 0px 10px 0px;
    padding: 10px;
    color: #f2f2e6;
    position: absolute;
    top: 687px;
    left: 330px;
}
2
Contributors
2
Replies
2 Hours
Discussion Span
2 Years Ago
Last Updated
3
Views
Question
Answered
3LauraB
Newbie Poster
3 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I got there in the end, remove the left: 330px; from #content and footer, and change #peronal position to relative, =-)

3LauraB
Newbie Poster
3 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Please mark the thread as solved, thanx...

shaya4207
Junior Poster
147 posts since Apr 2010
Reputation Points: 18
Solved Threads: 25
Skill Endorsements: 0
Question Answered as of 2 Years Ago by shaya4207

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0651 seconds using 2.73MB