I have been customizing a Wordpress theme for a client and I can't seem to get the top of the homepage to scale correctly on my laptop or mobile. The rest of it is fine, seeing as it was coded by a proI have a few elements going on in there, a slideshow, a logo, a background image, and a custom form built with gravity forms. I know if I play around with the background image I could probably get that to scale down using percentages. But since I have defined px sizes for the form and sliders, I am not sure how to make it all uniformly scale. Is this some basic css rules that I am missing or do I need to learn some responsive design techniques? Here is all the code so far...
HTML and Shortcodes
CssHTML Code:<div id="hlogo"><img src="http://www.amerikick.com/wp-content/uploads/2012/04/AmeriKick_Red_Home.png" style="width:514px; height:226px;" /></div> <div id="slideform"> <div id="form">[gravityform id="2" name="Web Only Offer" title="false"]</div> <div id="slider">[slider] [slide url=http://www.amerikick.com/wp-content/uploads/2012/04/Kids-Martial-Arts.jpg] [slide url=http://www.amerikick.com/wp-content/uploads/2012/04/Character.jpg] [slide url=http://www.amerikick.com/wp-content/uploads/2012/04/Determination.jpg] [slide url=http://www.amerikick.com/wp-content/uploads/2012/04/Mixed-MA.jpg] [slide url=http://www.amerikick.com/wp-content/uploads/2012/04/Family_slide.jpg] [/slider]</div></div>
HTML Code:.home #hero { background: url(http://www.amerikick.com/wp-content/uploads/2012/04/AmeriKick_Red_72dpi.jpg) no-repeat scroll center top transparent; } #hlogo{ position:relative; z-index: 9999; position: absolute; top: -20px; left: -430px; } #slideform{ position:relative; z-index:10; } #slider{ float:left; width:645px; height:435px; padding-right:15px; margin-left:-90px; margin-top:100px; border: 5px solid #CE0B0B; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; background-color:#000000; } /*Slider Arrows*/ .dayd_slider .orbit-wrapper div.slider-nav { display: none; } #form{ float:right; margin-right:-90px; margin-top:100px; } /* Gravity Forms*/ body #gform_wrapper_2{ width:420px; height:370px; margin-top:1px; padding:65px 20px 0; border: 5px solid #CE0B0B; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; background: url("http://www.amerikick.com/wp-content/uploads/2012/04/Web-Offer.png") no-repeat scroll center top #FFFFFF; }![]()



I have a few elements going on in there, a slideshow, a logo, a background image, and a custom form built with gravity forms. I know if I play around with the background image I could probably get that to scale down using percentages. But since I have defined px sizes for the form and sliders, I am not sure how to make it all uniformly scale. Is this some basic css rules that I am missing or do I need to learn some responsive design techniques? Here is all the code so far...
Reply With Quote




Bookmarks