Jump to content

Layering title with background over slider


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 post
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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...