CSS question....

W1NN1NG

New member
Jun 1, 2011
114
7
0
Im messing with a wordpress theme and for some reason something in the theme is overriding the CSS stylesheet and throwing this code in the header:

<style>
body.home #header_curve { margin-top:275px; }
body.home #header_wrapper { height: 506px; }
#slider_wrapper { margin-top: -400px; }
</style>

I need my #slider_wrapper to be { margin-top: -330px; }, but everytime I change it in my stylesheet it keeps getting overridden. Any thoughts?
 


yep...

in the #slider_wrapper you should define the position. (either absolute or relative).

position: absolute;

Also, this is bad coding. you should look into using "position: absolute; top: -400px;" instead of margin-top, but I haven't seen what you are attempting to do so, I can only speculate.

Good luck bro.
 
yep...

in the #slider_wrapper you should define the position. (either absolute or relative).

position: absolute;

Also, this is bad coding. you should look into using "position: absolute; top: -400px;" instead of margin-top, but I haven't seen what you are attempting to do so, I can only speculate.

Good luck bro.

Sequoia Brewing is where the menu problem lies.
 
Why are you defining that div with the style element embedded into it with


<div id="slider_wrapper" style="height:380px">
explicitly? (do a view source and you'll see it just after <!-- End header -->

Guess you're going to have to go into your theme's index.php and look for any mention of slider_wrapper in there.
 
Why are you defining that div with the style element embedded into it with


<div id="slider_wrapper" style="height:380px">
explicitly? (do a view source and you'll see it just after <!-- End header -->

Guess you're going to have to go into your theme's index.php and look for any mention of slider_wrapper in there.

This fixed it bro thanks soooo much!!!! +rep