On Tue, Jan 8, 2013 at 11:31 AM, Dina Derenshtein <[email protected]>wrote:
> Hi, > > I have a problem with several absolutely positioned divs on a wordpress > site I built based on the Thematic theme. Here is the link to the site: > http://kasparovchessfoundation.org > > The 2 partner logos on the top right, as well as the 'like' button are > sliding (and running over each other) when the window is re-sized or when > viewed on a small screen. Also, the div above the image slider, with the > text, "Kasparov Chess Foundation Inc. is a non-profit educational > organization supported by charitable donations from concerned individuals > and corporate sponsors." Needs to be affixed to the right bottom corner of > the slider. > > Here is my code: > In functions.php > function partner_logo_1() { > > echo '<a href="http://www.kcfe.eu/" title="Kasparov Chess Foundation > Europe"><span id="europe-image"></span></a>'; > > } > > add_action('thematic_header', 'partner_logo_1'); > > > > function partner_logo_2() { > > echo '<a href="http://www.kcfafrica.com/en" title="Kasparov Chess > Foundation Africa"><span id="africa-image"></span></a>'; > > } > > add_action('thematic_header', 'partner_logo_2'); > > > > function facebook_like_btn() { > > echo '<iframe src="// > www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kasparovchessfoundation.org%2F&send=false&layout=button_count&width=450&show_faces=false&font&colorscheme=light&action=like&height=21" > scrolling="no" frameborder="0" style="border:none; overflow:hidden; > width:450px; height:21px; position:absolute; right:111px; top:200px;" > allowTransparency="true"></iframe>'; > > } > > add_action('thematic_header', 'facebook_like_btn'); > > > > > > function wow() { > > if ( is_front_page() ) { > > ?> > > <div id="slideshow"><?php wowslider(3); ?></div> > > <?php > > } > > } > > add_action('thematic_abovecontainer', 'wow'); > > > function donate(){ > > if ( is_front_page() ) { > > ?> > > <div id="donate"><p>Kasparov Chess Foundation Inc. is a non-profit > educational organization supported by <a href=" > http://kasparovchessfoundation.org/?page_id=20">charitable donations</a> > from concerned individuals and corporate sponsors.</p></div> > > <?php > > } > > } > > add_action('thematic_aboveheader','donate'); > > In my CSS file: > #donate { > background: url(images/donations_back.png) no-repeat; > font:11px "Trebuchet MS", Helvetica, sans-serif; > line-height: 20px; > /*background-color: #DAEFEE;*/ > position:absolute; > top: 566px; > right: 13%; > */right: 466px;*/ > height: 100px; > width: 290px; > z-index:9999; > padding: 14px; > padding-top: 12px; > } > > #europe-image { > background:url("images/europe_logo_04.png") no-repeat transparent; > height: 103px; > width: 92px; > position:absolute; > cursor: pointer; > top:85px; > right: 29%; > */right:600px;*/ > } > > #africa-image { > background:url("images/africa_logo_06.png") no-repeat transparent; > height: 102px; > width: 113px; > position:absolute; > cursor: pointer; > top:85px; > right: 22%; > */right:480px;*/ > } > > Please help! > Thanks!!! > > ______________________________________________________________________ > css-discuss [[email protected]] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > List policies -- http://css-discuss.org/policies.html > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ I got it working better, but not perfect, by making "#header {position: relative; width: 0 auto; max-width: 990px;}" Then adjust the top and right positions on those two images: #europe-image{top: 45px; right: 10px;} #africa-image{top: 45px; right: 110px;} The problem is that those two images are right positioned to a percentage which is based, currently, on the browser window. Putting that relative position on #header (which the images are inside of) means that their absolute positioning is based on that container instead of the browser window. -Tim -- [email protected] ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
