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:
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, HTML structure : Javascript: .css ('width') of that page or div
& 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
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
Post a Comment