HTML / CSS проблема с элементами, движущимися при разных разрешениях экрана

0

У меня есть веб-страница: http://www.svaspasalon.com/construct2/index.html. Моя проблема заключается в том, что при загрузке моей таблицы стилей задняя часть, такая как изображение и загрузка страницы, не имеет проблемы, однако средний элемент (черный прозрачный фоновый текст и напоминание по электронной почте) всегда перемещается, когда я загружаю его на разные экраны, например, мой ноутбук и рабочий стол дома. как я могу заставить элемент не двигаться, а также переместить сабвуферный салон Sva и элемент в центр страницы.

CSS:

/* Reset */

 body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p     ,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-    
 spacing:0;}fieldset,img{border:0;}address,caption,dfn,th,var{font-style:normal;font-   
  weight:normal;}li{list-style:none;}caption,th{text- 
   align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}



 html,body{
 width:1080px;
 height:1920px;
 position: fixed;
 }

 body{
 margin:0 auto;
 padding:0;
 background:#2a1a10;
 font-family:"Helvetica Neue",Helvetica, Arial;
 font-size: 100%;
 }
 /*
 div#shim{
 visibility: hidden;
 width: 100%;
 height: 50%;                                                                     
 margin-top: 375px;
 float: left;
 position: relative;
 }
 */
 .fadein {
position: fixed;
max-width: 100%;
width: 100%;
min-width: 500px;
z-index:-1;
 }

 .fadein img {
   position:fixed;
   max-width: 100%;
   width: 70%;
   min-width: 500px;
   height: 80%;
   margin-top: 90px;
   margin-left: 255px;
  }
  /*
  div#content {
  width: 100%;
  height: 160px;
  margin: 0 auto;
  background: url(../images/content_bg1.png) left bottom repeat-x;
  float: left;
  position: relative;
  top: -80px; */

  /* IE4ever Hack: Hide from IE4 **/
   position: static;
   /** end hack */
   }

   /* Hide from IE5mac \*//*/
   div#shim {
   display: none;
   }
   html, body {
   height: auto;
   }
   /* end hack */
   /* ]]> */

   .logo{
   width: 78.125%;
   /* width: 800px; */
   margin: 0 auto;
   }

   h1{
   font-size: 36px;
   color: #C5953b;
   margin-bottom: 19px;
   letter-spacing: -2px;
   font-weight: 1000;
   text-shadow:-2px -2px 2px #fff, 2px 2px 2px #000;
   text-transform: uppercase;
   text-align: center;
   }

    h2{
 padding: 0px 3px;
 line-height: normal;
 background: #fff;
 font-size: 16px;
 font-weight: 700;
 float: left;
 text-transform: uppercase;
 }



 h1 span{
 font-weight: 500;
 }

 .clear{
  clear: both;
  }


 .right_side{
 width: 85%;
 /* width: 940px; */
 margin: 0 auto;
 }


 .right_content{
 width: 100%;
 /* width: 920px; */
 background: url(../images/blackish.png) repeat;
 height: 50px;
 padding: 23px 0 23px 40px;
 font-family:Candara;
 }


 .right_content h2{
 margin-top: 12px;
 margin-right: 60px;
 }

 form.email{
 padding: 0;
 margin: 10px 0 0 0;
 width: 204px;
 float: left;
 }

 /*.get_notified{
 width: 144px;
 line-height: normal;
 background: url(../images/field.png) left top no-repeat;
 font-family:Candara;
 font-size: 11.4px;
 color: #FF0000;
 border: none;
 padding: 7px 10px;
 margin-right: 6px;
 float: left;
 font-weight: 200;
 letter-spacing:0.4px;
 }
 */
 .go{
 padding: 10px;
 margin: 0 auto;
 width: 34px;
 height: 28px;
 border: none;
 background: url(../images/go.png) left top no-repeat;
 }

 .go:hover{
 background: url(../images/go.png) left bottom no-repeat;
 cursor: pointer;

 }
Теги:

1 ответ

0
Лучший ответ
html, body {
     min-width: 1080px; /* width: 1080px; */
     /* height: 1920px; */
     /*position: fixed;*/
}
  • 0
    @ Вилле, как я могу переместить текст и прозрачный элемент в центр страницы и сохранить его там с разным разрешением?
  • 0
    @ user2895617 Попробуйте удалить width из .right_content .
Показать ещё 2 комментария

Ещё вопросы

Сообщество Overcoder
Наверх
Меню