CSS - Skyscraper Ad Placement
Hey, guys. I've tried everything to get this to work. Basically the main content of our page is in a table centered on the page. We want a nice big skyscraper ad right next to the table that isn't aligned with the right portion of the page (because if it is, when the window is shrunk, the ad goes over top of the page content). How do I offset the ad position from the table? Will it work with different resolutions too?
Right now I have the div tag inside the table, looking like this: Code: <div style="float:right; clear:none; margin:0 10px 0 0;"> <img src="structure/images/VendorAds/skyscraperAds/homepage/skyscraper01-Q2.jpg" width="160" height="600" /> </div> But it puts it all the way to the right next to the scroll bar, and it offsets the main content to the left. How do I get the ad to appear right next to the table without offsetting anything, and without moving over top of the content when the page is shrunk? Any help is appreciated. EDIT: I fixed my own problem. Since the main content was a table, I wrapped a table around the main content, put the ad in a <td> element, then one on the left side to recenter it. Similar TutorialsBelow is my html in which I want to embed "legend" 30px to the right of "map". After much playing with the code, I need help. "legend" is pushed underneath "map" in this version. Other arrangments have also failed. If I get rid of the "border" and "leg" div tags, they are placed side by side, but I have littile control over where "legend" is placed. Any insight would be appreciated. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <head> <title>CSS</title> <style type="text/css"> #page {position:absolute;border: 1px solid black;left: 20px;top: 20px;padding-top: 25px;padding-left: 25px;padding-right: 25px;padding-bottom: 25px} #printArea {position:relative;border: 1px dotted black;padding-right: 5px;padding-top: 5px;padding-left: 5px;padding-bottom: 110px} #leg{position:relative;border:1px solid black;width:170px;top:0px;right:0px} .map {position:relative;border:1px solid black} .legend {position:relative;top:0px;left:880:0px} </style> </head> <body> <div id="page"> <div id="printArea"> <div id="border"> <embed class="map" id="map" src="index.svg" width="850px" height="675px" type="image/svg+xml"/> </div> <div id="leg"> <embed class="legend" id="legend" src="legend/legend.svg" width="170px" height="625px" type="image/svg+xml"/> </div> </div> </div> </body> </html> Hi there. I'm working on a page, and I'm a bit confused about how to place my CSS on it. The page has a nutritional search box that will be the primary focus of the entire site. Right now I have only a front page. So currently I have one external CSS file with the CSS for the page layout, along with the CSS to arrange the search box. But now I want to bring up a javascript popup with just the searchbox and another table. I can't use my original external CSS because I don't want the main page naviagation in the popup, nor do I want to copy the CSS for the search box everywhere. What is the correct way to do this? I almost want two external css files. I want to include BOTH files in the main page, and only the file associated with the search box in the popup. But in the reading I've been doing it doesn't seem possible. Even when I try copying the CSS for the search box, Firefox doesn't seem to like me attaching a different CSS file in the popup then I had in the main page. Please help! Or at least point me to a useful article. Thank you! Hi there, I'm having a FF/IE problem! As usual. I have a site up (www.silk-works.com)which thanks to BonRouge and Dan_A has a footer that sits in the correct position, ta peeps. The problem I have now is that - www.silk-works.com/jane/jane.html - I have Images floated right and I want text to appear alongside - which FF handles fine, but IE bumps below the first Image.. Code: <img src="../photographs/jane01.jpg" alt="" id="containerImageRight"/> <img src="../photographs/jane03.jpg" alt="" id="containerImageRight"/> <p>some ample text....</p> [CODE] CSS for image placement is; [CODE]#divWrapper #divContainer #containerImageRight { margin: 0px 10px 10px 10px; float: right; border: 2px solid #6E6447; padding: 0px; } CSS for <p> tag is; Code: #divWrapper #divContainer p { font-family: "Gill Sans MT", Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; padding-left: 10px; letter-spacing: 0.05em; line-height: 1.3em; padding-right: 10px; color: #6E6447; } Any suggestions greeted with a free ice cream. Regards, James. Hi, If you view the site below with IE, you'll probably notice that the main menu going across the top is somewhat off. By off, I mean it doesn't vertically align in the middle, but it does with Chrome. http://www.vitality-bodymindsoul.com/ Any idea what's causing this? Thanks much. Hi, I am trying to line up a few images at the top of this page: iamthelab dotcom The 2 rectangles need to be aligned to the top of the page and I can't for the life of me figure out what I am doing wrong. I'm sure the solution is simple. No help from other forums, maybe you guys can assist. Thanks! Can anyone tell me how I can move the navigation bar I'm using below so that it left aligns with the table below it? You can view the bar he http://oharenoise.org/2010_news_releases-2.htm I was told that the main nav element has a left: 75 px attribute attached to it but I can't seem to find it, embedded or on the external CSS. Maybe I'm blind? The CSS external sheet is found he http://oharenoise.org/ONCC_Style_Sheet.css Thanks, Rebecca I'm sure this is some basic thing that's just slipped my mind. http://www.onlineeditions.com/opportunityhouse/ As you can see, it's rendered differently between FF and IE: the content column on the right has a few nested divs to hold background images, but on FF (And Safari) the "right" div seems to have slipped down and to the left a few pixels. Code and css is all valid, per w3c. If someone can help me find what's gone wrong here, I'd be most thankful. Hello, I'm new to the world of CSS. Hopefully that won't be TOO obvious to anyone looking at my code... Anyway, it hasn't taken long for me to find frustrations with IE. I'm having issues with elements on two pages of the site I'm working on: the index page (wiayouthmountainland.org ) and the apply page (wiayouthmountainland.org/apply.php ) On the index page there is some white text in the center of the page. It is where it should be in FF but is way over to the right in IE. On the apply page there are some textboxes on the right side of the page. Again, the placement is correct in FF, but they are too low in IE. I don't know if the same thing is causing the problems. I don't really know what it is I'm looking for. If someone wouldn't mind taking a look to see if they can figure out what is messing me up, I'd really appreciate it! Here is a link to the css: wiayouthmountainland.org/WIA.css . Thanks in advance! Jules I'm brand new to CSS and I've been trying to customize a template, but it seems whenever I move the Search bar from the top left into the menu bar on the right side it offsets the placement of other items and I cannot for the life of me figure this out. My website is floydsewingmachines dot com (I guess it won't let me post the actual address?) but any suggestions or help would be greatly appreciated. Thanks! How can I best place Image maps with CSS? It seems the text placement command works, but I don't know whether that's the best way. Here's a test page I threw together which uses this command to place the image map: http://www.gamexplain.com/test2.htm So is there a better way? How should I format the command? Thanks! Good morning. I'm in the procces of changing my old table based site to css/ divs layout. Instead of using a "position: absolute" setup, I was trying to get the page to fit dynamicaly with different screen resolution (I placed the initial divs with "left: 20%;" and "right:20%;" which seems to work fine in FF, but fails completely in IE). So, in the end I had to resort to fixed positions and sizes... not what I wanted... but it'll do in the meantime (Until I find the propper tutorials to get this done). Meantime, I have a problem with two small divs I'm trying to place at the center and bottom of the page. They do display at the right position with FF, but are placed on the left with IE. text-align: center doesn't seem to do the trick... and since the "align" tag is going to be deprecated... I don't want to use it. How do I set these to be placed in the bottom/center? The page: http://www.onpoi.net/ah/ (Note that only the index.php has been redone, the rest is still with the old table layout). Thanks in advance Hello, My page when correct should show the HeaderContainer, blow that the ActionContainer which has, 3 column divs, then below that the FooterContainer. It is important that the page build starts with the CenterContainer, then the LeftContainer, then RightContainer. My issue is that the LeftContainer and RightContainer columns both are aligning to the bottom of each other, and to the bottom of the CenterContainer column. I think this could be an issue with floats. What do you think? See online demo, http://tlcgiftsandbaskets.com/demo/positioning/position_css.php Code: body{ margin: 0pt; margin:0 15px 0 0; text-align: center; } #Container{ position: absolute; z-index:1; width: 700px; height:auto; left: 50%; margin-left: -350px; border-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-color: #ccbbaa; background-color: #ffffff; text-align:left; } #ActionContainer { margin:0 0 0 0; text-align:left; border:1px solid orange; } #CenterContainer { margin:0 0 0 175px; text-align:left; border:1px solid yellow; width:250px; } #LeftContainer { margin:0 0 0 10px; text-align: left; width: 150px; border:1px solid green; float:left; } #RightContainer { margin:0 0 0 450px; text-align: left; width: 150px; border:1px solid blue; float:right; } #HeaderContainer { margin:0 0 0 0; width: 700px; height: 245px; border:1px solid red; } #FooterContainer { margin:0 0 20px 0; padding:0 0 30px 0; border:1px solid blue; display:block; } Code: <div id="Container"> <div id="ActionContainer"> <div id="CenterContainer">CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer, CenterContainer.</div> <div id="LeftContainer">LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer, LeftContainer.</div> <div id="RightContainer">RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer, RightContainer.</div> </div> <div id="HeaderContainer">HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer, HeaderContainer.</div> <div id="FooterContainer">FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, FooterContainer, </div> </div> hi, i'm trying to add an outer glow image to my site, starting about a 100px from the top. when i use padding on the element i'm adding the trim to, the entire site including the banner shifts down. so i tried using background position, which works until i add repeat-y, which causes it to repeat in the 100px where i don't want it. is there a way to make an image only repeat down? Here trying to learn CSS and needed a menu to go under a logo on my page, I can't however get it in the right position. If anyone could help me i would greatly appreciate it. the problem is the #cssmenu codeing i think. 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"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <style type="text/css"> <title>Northwest CT YMCA - We Build, Strong Kids, Strong Families, Strong Communities.</title> #container { width: 900px; margin: 0 auto; } body { background: #fff url('http://www24.brinkster.com/mattphat/images/body.gif') top repeat-x; font-family: Arial, Helvetica, sans-serif; } #header { height: 300px; position: relative; } #header h1 a { display: block; text-indent: -5000px; width: 606px; height: 125px; background: url('http://www24.brinkster.com/mattphat/images/logo.gif') no-repeat; position: absolute; left: 20px; top: 30px; } #header2 { display: block; width: 769px; height: 32px; background: url('http://www24.brinkster.com/mattphat/images/winterprograms.gif') no-repeat; position: absolute; left: 20px; top: 250px; } #header2 h1 {padding-top: 20px; padding-left: 20px; color: #777; font-size: 16px;} #header2 h1 a {color: #5c91c7;} #header2 h1 a:hover { color: #386da4; } #cssmenu {list-style: none; padding: 0px;} #cssmenu .displace {position: absolute; top: -90px; left: -5000px;} #cssmenu li {float: left;} #cssmenu li a { display: block; width: 150px; height: 44px; background: url('images/links.gif');} #cssmenu li.Torrington a { background-position: 0 0; } #cssmenu li.Winsted a {background-position: -150px 0;} #cssmenu li.Cannan a {background-position: -300px 0;} #cssmenu li.Torrington a:hover {background-position: 0 -43px;} #cssmenu li.Winsted a:hover {background-position: -150px -43px;} #cssmenu li.Cannan a:hover {background-position: -300px -44px;} #cssmenu li.Torrington a:active {background-position: 0 -88px;} #cssmenu li.Winsted a:active {background-position: -150px -88px;} #cssmenu li.Cannan a:active {background-position: -300px -88px;} #cssmenu li.Torrington a.selected {background-position: 0 -132px;} #cssmenu li.Winsted a.selected {background-position: -150px -132px;} #cssmenu li.Cannan a.selected {background-position: -300px -132px;} #utility-nav { position: absolute; right: 20px; top: 40px; } #utility-nav li { display: inline; } #utility-nav li a { display: block; float: left; font-size: 11px; color: #ffffff; text-decoration: none; padding: 0 5px; background: url('http://www24.brinkster.com/mattphat/images/utility_nav_divider.gif') left no-repeat; } #utility-nav li a:hover, #utility-nav li a.active { color: #E9F5FE; text-decoration: underline; } #utility-nav li.first-item a { background: none; } #sub-header { background: url('http://www24.brinkster.com/mattphat/images/sub_header.gif') no-repeat; width: 900px; height: 60px; position: relative; padding-top: 43px; margin-bottom: 20px; } p.breadcrumbs { font-size: 15px; color: #E13040; position: absolute; top: 9px; left: 20px;} p.breadcrumbs a {color: #5c91c7;} #images { background: #fff; height: 111px; } #images li { display: block; float: left; margin: 1px 1px 0 0;} #images li.first-item { margin-left: 1px; } #images li.last-item { margin-right: 0; } #directory ul { width: 159px; float: left; padding: 10px 0 0 20px; } #directory ul li { background: url('http://www24.brinkster.com/mattphat/images/directory_bullet.gif') left no-repeat; padding-left: 8px; } #directory ul li a { font-size: 11px; color: #666; text-decoration: none; line-height: 1.6; } #directory ul li a:hover, #directory ul li a.active { border-bottom: 1px dotted #333; color: #333; } #sidebar { width: 247px; float: left; padding-left: 20px; margin-right: 20px; } #sidebar h2, #main-content h2 { font-size: 20px; color: #2e9eff; margin-bottom: 5px; text-indent: 8px; } #sidebar ul { background: #f4f4f4 url('http://www24.brinkster.com/mattphat/images/sidebar_li.gif') top repeat-x; } #sidebar ul li { padding: 10px; background: url('http://www24.brinkster.com/mattphat/images/sidebar_li.gif') bottom repeat-x; line-height: 1.4; } #sidebar ul li img { float: left; padding: 1px; border: 1px solid #ddd; margin-right: 8px; } #sidebar ul li h3 { font-size: 11px; font-weight: bold; color: #ee912a; } #sidebar ul li p { font-size: 11px; color: #999; } #sidebar ul li a { background: url('http://www24.brinkster.com/mattphat/images/read_more.gif') left no-repeat; padding-left: 12px; color: #5c91c7; font-size: 11px; } #sidebar ul li a:hover { color: #386da4; } #main-content { width: 592px; float: left; margin-bottom: 20px; } .article-wrapper .article-actions { background: url('http://www24.brinkster.com/mattphat/images/article_actions.gif') top repeat-x; height: 34px; font-size: 11px; color: #999; padding: 10px 0 0 8px; } .article-wrapper .article-actions li { display: inline; margin-right: 10px; } .article-wrapper .article-actions li img { vertical-align: middle; margin-right: 6px; } .article-wrapper .article-actions li a { color: #666; } .article-wrapper .article-actions li a:hover { text-decoration: underline; } .article-wrapper .article { width: 574px; margin: 0 auto; } .article-wrapper .article h3 { font-size: 16px; font-weight: bold; color: #ee912a; margin-bottom: 2px; } .article-wrapper .article p { color: #666; font-size: 12px; line-height: 1.6; margin-bottom: 10px; } .article-wrapper .article strong { font-weight: bold; } .article-wrapper .article em { font-style: italic; } .article-wrapper .article p a { color: #5c91c7; } .article-wrapper .article p a:hover { color: #3b6691; } #footer { background: url('http://www24.brinkster.com/mattphat/images/footer.gif') no-repeat; width: 898px; height: 80px; margin: 0 auto 10px auto; clear: both; padding-top:13px; position: relative; } #footer p { font-size: 11px; color: #999;} #footer p.copyright { text-align: center; } #footer p.copyright span { color: #5c91c7; } #footer p.authors { position: absolute; right: 25px; top: 14px; } #footer p.authors a { color: #5c91c7; text-decoration: none; } </style> </head> <body> <div id="container"> <div id="header"> <h1><a href="#">Health Life</a></h1> <ul id="utility-nav"> <li class="first-item"><a href="#">About us</a></li> <li><a href="#">Contact</a></li> <li><a href="#">Employment</a></li> <li><a href="#">Support the Y</a></li> </ul> <!-- //#main-nav --> </div> <!-- //#header --> <!-- //#sub-header --> <div id="cssmenu"> <li class="Torrington"><a href="#" title="Home"><span class="displace">Home</span></a></li> <li class="Winsted"><a href="#" title="Blog"><span class="displace">Blog</span></a></li> <li class="Cannan"><a href="#" title="Contact"><span class="displace">Contact</span></a></li> </div> <div id="sidebar"> <h2>Quick Links:</h2> <ul> <li class="clearfix"> <img src="YMCA/logo.png"> <br><br><br><br><p>"Ive regained and maintained my mental capacity from 10 years earlier. I look forward to every day now with an open mind and new possibilities."<br> <b>JoAnn Baird, age 67</b><br> Program Graduate<br> <br> <font color="red"><b>Think Faster, Focus Better, Remember more.</b></font></p> <a href="http://www.northwestctymca.org/PDFs/Final%20Brain%20Fit%20Brochure.pdf">Read more</a> </li> <li class="clearfix"> <img src="YMCA/ymca-logo.jpg"> <h3>Virtural Tour</h3> <p>Before you join please feel free to take a virtural tour of our 3 branches by clicking the links below.</p> <a href="http://www.flickr.com/photos/44211805@N04/sets/72157622709363760/show/">Torrington</a> <a href="http://www.flickr.com/photos/44211805@N04/sets/72157622709343912/show/">Winsted</a> <a href="http://www.flickr.com/photos/44211805@N04/sets/72157622610891891/show/">Cannan</a> <li class="clearfix"> <img src="YMCA/hugs.JPG"> <h3>Childcare</h3> <p>Our Torrington and Winsted branchs both offer quality childcare services to the public. To read more information about childcare at the Y! click below. </p> <a href="#">Read more</a> </li> </ul> </div> <!-- //#sidebar --> <div id="main-content"> <h2>Northwest YMCA Latest News:</h2> <div class="article-wrapper"> <ul class="article-actions"> <li><img src="images/category.gif" alt="" /> <a href="#">My Healthy Life</a></li> <li><img src="images/date.gif" alt="" /> 24.12.2008 at 23:00h</li> <li><img src="images/author.gif" alt="" /> <a href="#">YMCA Webmaster</a></li> <li><img src="images/comments.gif" alt="" /> <a href="#">32 Comments</a></li> </ul> <div class="article"> <img src="YMCA/my%2520healthy%2520life%2520logo.jpg" alt="" /><h3>Northwest YMCA ~ My Healthy Life ~ New in 2010!</h3> <p>The Northwest YMCAs my healthy life program is a personalized health and wellness program included with your YMCA Facility Membership. The YMCA is your health partner, providing you with the proper education, motivation and healthy activity routines to help you reach your fitness goals. Best of all, theres a step-by-step program for everyone! Each program will feature workout routines and educational information, guidance, and support sessions with your YMCA Wellness Coach. Its easy, select from one of our four my healthy life programs: <b>Trim, Momentum, Spark or Firm.</b> <a href="http://www.northwestctymca.org/PDFs/My%20Healthy%20Life%20Brochure%20FINAL.pdf">Click Here for More Details!</a><p> </div> </div> <!-- //.article --> <div class="article-wrapper"> <ul class="article-actions"> <li><img src="images/category.gif" alt="" /> <a href="#">Welcome</a></li> <li><img src="images/date.gif" alt="" /> 24.12.2008 at 23:00h</li> <li><img src="images/author.gif" alt="" /> <a href="#">YMCA Webmaster</a></li> <li><img src="images/comments.gif" alt="" /> <a href="#">32 Comments</a></li> </ul> <div class="article"> <h3>*NEW* Year ~ *NEW* Website </h3> <p>Welcome to a new year and a brand new site for the Northwest YMCA. Please bare with us while we work out the kinks, in our effort to bring you a more interactive and informative website. <br><br> </p> </div> </div> <!-- //.article --> </div> <!-- //#main-content --> <div id="footer"> <p class="copyright">2009 Northwest Connecticut YMCA.<br>The YMCA is a 501(c)(3) not-for-profit social services organization dedicated to <br>building strong kids, strong families and strong communities.</p> <!-- //#footer --> </div> <!-- //#container --> </body> </html> Hi, I'm trying to achieve the raised/gradiated background effect you'll see on the following URL (scroll halfway down the page) csszengarden Kyoto version (sorry, since I'm a new user I can't provide a direct URL) with an image gradient repeated on the y-axis. It is difficult to give an example of the image without being able to attach and image here. I've tried so many things I've forgotten my own name. Please let me know if there is any more information that I can provide. Thanks! Hello, My home page works fine on all browsers and platforms except safari. http://www.caillouette.com/EoLtest/ The two buttons below the main nav should be above the big blue "Request Information" button. Can anyone help? thanks -S I'm aware that there are several threads addressing the issue of image placement, but I'm unable to find anything referencing the specific issue I'm having, so I figured I'd ask... Let me first say that I am a professional martial arts instructor, not a web developer. What I do know how to do is completely self-taught. Bearing that in mind, I've discovered a relatively minor issue with our site, and I'm curious as to input here. Blue Mountain Martial Arts You will notice two "bamboo sprigs" in the upper right and left hand corners of the page. It took me quite awhile to get these to the actual edge of the browser window, but it seems that what I did was almost too effective. When viewing yahoo's cache of the page the bamboo is still in the upper corners of the browser window, rather than still lined up with other page elements. Google's cache for some reason places the left bamboo in the middle of the page. This is also an issue when the browser window starts "small", and is then maximized. The images in that case do not re-align, and thus will stay where they originally loaded, which may be in the middle of the page. I'd like prospective martial arts students looking at our studio to be drawn in, rather than driven out by a malfunctioning website. Most of the time, the site works fine, but I'd like to make that 100%. Input...? What should I change to have the images load on the edge of the screen, but reposition themselves relative to the other page elements if necessary? I have a php application that requires the applicant to input information on their spouse. If they claim to be single the fields for spouse dissapear using javascript to make a <div> surrounding the fields "hide". This leaves a blank gap on the applicaton where the fields use to display. How would I go about moving the questions below it on top of the hidden spouse fields? here is the current javascript I am using to accomomplish this. It uses a php loop to display the questions for X amount of owners. Code: <? echo "<script language=javascript type='text/javascript'>"; for($i=1; $i <= $_SESSION['principal']['numOwners']; $i++) { echo " function hidediv".$i."() { if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById('hideShow".$i."').style.visibility = 'hidden'; } else { if (document.layers) { // Netscape 4 document.hideShow".$i.".visibility = 'hidden'; } else { // IE 4 document.all.hideShow".$i.".style.visibility = 'hidden'; } } } function showdiv".$i."() { if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById('hideShow".$i."').style.visibility = 'visible'; } else { if (document.layers) { // Netscape 4 document.hideShow".$i.".visibility = 'visible'; } else { // IE 4 document.all.hideShow".$i.".style.visibility = 'visible'; } } } "; } echo "</script>"; |