- This topic is empty.
-
AuthorPosts
-
September 9, 2011 at 6:49 pm #34296SoDivineDesignMember
Any help I can get right now would be soooo appreciated, I am pulling my hair out! How do I stop my page elements that are absolute from moving when the browser window is re-sized. It looks great if my window is zoomed in on 100% but anything below or under that makes the elements go all over the place. Here is some of my CSS:
* {margin: 0; padding: 0;}
html {background: url(images/bg.png); width: auto; min-width:inherit}
body { font: 12px/1.4 Georgia, Serif;}.group:after {visibility: hidden; display: block; font-size: 0; content: ” “; clear: both; height: 0; }
.group {display: inline-block; clear: both; }
/* start commented backslash hack */* html .group { height: 1%; } .group {display: block; } /*close commented backslash hack */article, aside, figure, footer, header, section {display: block;}
#page-wrap {width: 1002px;
margin: 100px auto 10px;
background: white;
position: relative;
}#page-wrap2 {
width: 388px;
height: 900px;
background: url(images/page-wrap.png);
position:absolute;
z-index: 3;
margin-left: 125px;
top: 150px;
}#header-bar {background:url(images/header.png);
width: 1002px;
height: 187px;
}#logo {
background:url(images/gojlogo.png);
width: 612px;
height: 397px;
position:absolute;
z-index:4;
margin-left: 70px;
top: 11px;
}
and the website is http://www.gojevents.com. Any insight is greatly appreciated. Thank you!September 9, 2011 at 7:00 pm #86843chrisburtonParticipantAnother case of bad use with absolute positioning. May I see a link so I can get the feel of what you’re trying to do?
September 9, 2011 at 7:14 pm #86845nfc212MemberLooking at the source code of your page in Firefox about halfway down the page you will find:
The closing body and html tags are in the middle of the page code.
Putting the tags in the right order would help.
September 9, 2011 at 9:08 pm #86849SoDivineDesignMemberThe link is http://www.gojevents.com
September 9, 2011 at 9:11 pm #86850SoDivineDesignMemberThank you so much…it’s always great to have an extra pair of eyes
September 9, 2011 at 11:47 pm #86852SoDivineDesignMemberI figured out what was wrong…thank you for the help
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.