Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Need to move a contact form up on my page....

Hi,

If you visit my page @ http://villa-terrazza.com/2014NewSite/offers/ you can see I have a contact form that has been moved down towards the bottom of the page. I am trying to move it up without affecting the following class element:

.wpb_row, .wpb_content_element, ul.wpb_thumbnails-fluid > li, .last_toggle_el_margin, .wpb_button { margin-bottom: 35px; min-height: 310px; }

Any ideas?

Thanks!

1 Answer

The div that hold the "Offers" needs to be set up to { min-height: 0 } or something that kill or reset the 300px you have there. If you dont't want to edit your current classes try to add and id like:

fix-spacing {

min-height: initial;

}

to the .wpb_row div that holds the Offers.

Hi Alex,

Thanks for the reply. So I didn't want to add anything to my HTML because I'm using a template page for these and so didn't want this change to affect all the pages that this element exists on. So I needed it to be adjusted custom-style. I tried the following code changes just to the individual element using the Custom CSS admin (there are two negative top-margins used however... will this have a negative effect in some browsers do you think?)

div.vc_span12.wpb_column.column_container.vc_custom_1400780425357 { margin-top: -98px; }

.vc_custom_1401045850304 { margin: -150px 0px 20px !important; }

Thanks for your help