html - Position of text in resonsive design -


I hope this is a very simple question for you people.

I have a responsive layout with background, centered in the center without the specified width attribute. Now I would like to make a partition which is right inside the background image.

Like this:

Enter image details here

# Reply to Jasper Senorst

This problem is .. It runs outside of the div

HTML =>

  & lt; Div class = "view_banner" style = "background: url ({$ header.headerimg}) center 0 no-repeat;" & Gt; {If $ header.copyright} & lt; Div class = "copyright" & gt; Cortez Cree Europe & lt; / Div & gt; {/ If} & lt; / Div & gt;  

CSS =>

  .view_banner {status: relative; Width: 100%; Height: 476 px;} Copyright (Position: Absolute; Right: 0; Below: 0; Font-Size: 16px; Color: Black;}  

Add relative position of the div with the background image.

pre-class = "snippet-code-css lang-css toppint-override"> #image_with_bg {place: relative; width: 200px; / * this * / height removal: 50px ; / * Remove the * / background-color: # ff0000;} #overlay_text {condition: full; correct: 0; bottom: 0; surface Premium Color: #fff;}
  
& lt

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -