Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

помогите с версткой


 Share

Recommended Posts

почему значки сьезжают

<header>
  <div class="container">
    <div class="row">
      <div class="col-sm-3">
        <div id="logo">{% if logo %}<a href="{{ home }}"><img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" class="img-responsive" /></a>{% else %}
          <h1><a href="{{ home }}">{{ name }}</a></h1>
          {% endif %}</div>
      </div>
      <div class="col-sm-3">{{ search }}</div>
      <div class="col-sm-3">
            <div class="adress">
               <p><i class="fa fa-map-marker"></i> Адрес: {{storeaddress}}</p>
               <p><i class="fa fa-phone"></i>Телефон: {{ telephone }}</p>
            </div>
     </div>

    <div class="col-sm-3">
    <div class="knopki">
		<a href="{{ wishlist }}" id="wishlist-total" title="{{ title_wishlist }}"><i class="fa fa-heart"></i></a>
		<a href="{{ compare }}" id="compare-total" title="{{ title_compare }}"><i class="fa fa-exchange"></i> </a>
         {{ cart }}
</div>
</div>

    
</header>

получается https://clip2net.com/s/4byEgUR аа хочется чтоб были в одну строку

Link to comment
Share on other sites


On 4/4/2021 at 8:49 PM, searchingman said:

Для начала проверьте верстку на валидность. Возможно теги не закрыты.

спасипотому что проверил не помогло

Link to comment
Share on other sites


Потому как это верстка bootstrap, каждому блоку у Вас отвегдено 4 из 12 полос, поэтому ик всё и сжимается, можно сгделать, каждому блоку назналить 3 из 12, т.е. col-sm-4, а адрес и телефон переносить выше, например с col-sm-6, только им добавить float:right;, по умолчания согдержимое блоков выравнивается влево, т.е. float:left, а может и не надо, длинный адрес и телефон, от середины до правого края пойгдет.Кроме того, чтоб было в одну строку, задавайте списком без вскаких<P>, используйте стили bootastrap-а, которые им уже есть, типа

<div id="top-links" class="nav pull-left">
        
        <ul class="list-inline">
      
          <li><a href="{{ адрес ссылки}}">Ваша ссылка</a></li>
        
        </ul>
      </div>

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
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.