Jump to content

Layering title with background over slider


Lesly

Recommended Posts

I would appreciate your help with layering a widget title with a background over a slider.

 

The demo site appears here:

 

http://acceleratedpowermarketing.com/reicher/

 

I want it to look like this:

 

http://www.standrewsch.org/

 

Where the bar with the title doesn't move when the screen is zoomed.

 

Using this code, I'm able to get it to look like I want if it's zoomed at the correct place. Otherwise the bar, is out of place.

 

I want to learn how to do this with blocking if that is possible and will solve the problem.

 

Thanks

 

 

#it_widget_content-5 .widget-title {

background: url("images/Home-Page-Banner.jpg") repeat scroll 0 0 rgba(0, 0, 0, 0);

color: #fff;

font-size: 2em;

font-weight: normal;

padding: 0.35em 0.5em;

position: absolute;

right: 15%;

text-indent: 0;

top: 30%;

z-index: 995;

}

Link to comment
Share on other sites

They have their box positioned relative to its container, yours is positioned relative to the entire page.

 

Elements with position absolute are positioned from the edges of closest ancestor that has position absolute, relative or fixed, if no ancestor is found it will be relative to the page's edges

Link to comment
Share on other sites

#it_widget_content-5 {    height: 47px;    padding: 0;}#builder-module-5414b37d8361e-background-wrapper {    margin-top: -16px;    padding: 0;}#it_widget_content-5 h4.widget-title {    background: url("images/Home-Page-Banner.jpg") repeat scroll 0 0 rgba(0, 0, 0, 0);    color: #FFFFFF;    font-size: 2em;    font-weight: normal;    margin: 0;    padding: 0.35em 0.5em;    position: absolute;    right: 5%;    text-indent: 0;    z-index: 10;}
Link to comment
Share on other sites

I would appreciate your help with layering a widget title with a background over a slider.

 

The demo site appears here:

 

http://acceleratedpowermarketing.com/reicher/

 

I want it to look like this:

 

http://www.standrewsch.org/

 

Where the bar with the title doesn't move when the screen is zoomed.

 

Using this code, I'm able to get it to look like I want if it's zoomed at the correct place. Otherwise the bar, is out of place.

 

I want to learn how to do this with blocking if that is possible and will solve the problem.

 

Thanks

 

 

#it_widget_content-5 .widget-title {

background: url("images/Home-Page-Banner.jpg") repeat scroll 0 0 rgba(0, 0, 0, 0);

color: #fff;

font-size: 2em;

font-weight: normal;

padding: 0.35em 0.5em;

position: absolute;

right: 15%;

text-indent: 0;

top: 30%;

z-index: 995;

}

that look exactly like the first website

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...