html - My responsive images are overlapping my header. -
Hey I've created a JSfield to show you the problem My text is overlapping by my responsive images I want to That they sit above the text and do not do this.
This is my CSS for images and problems:
.page-header .logo img {status: complete; Limit: 2px solid RGBA (0, 0, 0, .3)! Important; Top: 45%; Left: 35.5%; Width: 30%; Height: 30%; } .page-header h1 {margin: 30px 50px 10px; } .text-centre {text-align: center; } .page-header h1 {margin: 30px 50px 10px; } H1 {margin: 0 30px; Font-size: 54px; Font-weight: 300; Color: # 555; }. Page header image {width: 100%; Height: auto; }. Page Header {Status: Relative; Margin: -50px-50px35px; Padding: 0 35px; Border bottom: 1px solid # e6e6e6; }
Honestly, your code is a mess I'm not sure what you can achieve Trying to do it, but I will try to explain what I can do.
Your logo has full position, which allows it to stay on top of the slider, but because it is% for its location and size, it is difficult to prevent it from growing or growing in size by saying ... Your logo basically has a size and position relative to the container size and that container & lt; Div class = "logo" & gt;
does not have a fixed width or height, the size depends on its container which is the page header ... and it also does not have a fixed width or height, so it is relative to the body.
You have many solutions. The first and the best option is to clean your code and actually decide on a fixed location / size for the logo or logo container.
Second, in order to inject a new division, which is the relative position but the logo is the same size, in this way, if the logo grows in size, the newly created invisible divas will also increase the content by pushing So that it is not overlapping by the logo.
Of course, keep in mind that because the location of your logo is% base (top: 45% etc.), the newly created division will move the logo because the size of the body will increase (container for everyone). Your logo will also be extended to%
Comments
Post a Comment