html - How To Create A Responsive Horizontal Layout Using CSS? -


I work for a creative design studio who likes to break norms and conventions to create unique website layouts and Recently we have started the development of horizontal website layout while the horizontal website layout looks "cool", I have worked to make them liquid and responsive to work so far, as if you have a vertical grid base The can out of the website.

A website with a container generally for verticals that holds a percentage width on your container element, then set the maximum width, with a responsive layout, your content is infinitely far from the page. Scrolls, it can vary in width, especially if the content is unique and therefore the formula target / reference * 100 does not actually work (or what is it?).

Do you have any way of working on a grid-based responsive website to be responsible for the heights, padding and margins on the elements? I do not feel like using Javascript but a CSS fix would be ideal.

I'm trying to create an example of the type of layout for your reference:

 Enter the image details here

You control the child elements of page container divas < Code>. By calculating OuterWidth , you can do this with jQuery and by adding all of them together, .css ('width') of that page or div

HTML structure :

  & lt; Div id = "main" & gt; & Lt; Div & gt; & Lt; Img src = "#" / & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Img src = "#" / & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Img src = "#" / & gt; & Lt; / Div & gt; & Lt; / Div & gt; Edit: I forgot to add CSS, but the main point is that you want the children of 
#main to leave the divs temporarily.

Javascript:

  function () {var window_width = jQuery (window) .Width (), container = jQuery ('# main'), page_width = 0; // Get every basic element of the "main" container container. children (). Each (function (index) {var incl_margin = true, $ this = jQuery (this); // Check that each child element has margin-left or margin-write if (persian ($ this.css ('margin-left') ) Get the width of the element, including the margins (if they are present from the above)    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -