fluid-layout

How do I create a row of justified elements with fluid spacing using CSS?

瘦欲@ 提交于 2019-12-02 07:00:28
问题 How do I create a row of block elements with auto widths using text-align:justify , display: flex , column-count and/or other CSS properties? 回答1: Use the following components: A text-align:justify container for the row An inline-block container for each column An inline-block placeholder with width:100% to stretch the inside ` /*Row container is justified*/ #container { width: 100%; text-align: justify; } /*Column container and placeholder are inline-block*/ object, span { display: inline

Typo3 Fluid Templates How to add multiple templates

大城市里の小女人 提交于 2019-12-02 06:32:37
问题 I have a finished static HTML Template. I need to map it to typo3 so the content is dynamic. I followed following tutorial: https://docs.typo3.org/typo3cms/SitePackageTutorial/FluidTemplates/Index.html This works perfectly, but now I wonder how I can change the template per site? I made template for each site i.e Gallerie.html, Contact.html and they are linked to the same Layout as Header and Footer is always the same. How do I now tell the page About us to use the Gallerie.html? My setup

How to get <img> to be the same width as <figcaption>?

耗尽温柔 提交于 2019-12-02 03:51:27
In a responsive design, how can the width of a <figcaption> be made to adjust according to the width of the <img> , but not exceed it? <section> <figure> <img src="link.jpg"> <figcaption>Caption</figcaption> </figure> </section> The corresponding CSS only limits the <img> and not the <figcaption> , see: How can the <figcaption> be constrained along with the <img> , without using max-width: 200px (or 12.5em) on the <figure> container? Here are the important bits of CSS ( full on JSFiddle ): section figure { position: relative; margin: 0 auto; /* to center it */ } section figure img { max-width:

How do I create a row of justified elements with fluid spacing using CSS?

蹲街弑〆低调 提交于 2019-12-01 23:27:13
How do I create a row of block elements with auto widths using text-align:justify , display: flex , column-count and/or other CSS properties? Use the following components: A text-align:justify container for the row An inline-block container for each column An inline-block placeholder with width:100% to stretch the inside ` /*Row container is justified*/ #container { width: 100%; text-align: justify; } /*Column container and placeholder are inline-block*/ object, span { display: inline-block; } /*Placeholder is stretched to enforce shrink-wrapping*/ span { width: 100%; } <!--row--> <div id=

Why does order of float div and non-float div matter only in some cases?

我们两清 提交于 2019-12-01 17:58:36
I have a similar problem as CSS Auto Margin pushing down other elements : A right floating sidebar gets pushed down below the main non-floating content div. The answer proposed works: just reverse the order of the markup and write out the float div before the non-float div. For example, this: <div class="container"> <div id="non-floating-content"> fooburg content </div> <div id="float-right"> test right </div> </div> needs to be awkwardly re-ordered as: <div class="container"> <div id="float-right"> test right </div> <div id="non-floating-content"> fooburg content </div> </div> So then, why

Why does order of float div and non-float div matter only in some cases?

只谈情不闲聊 提交于 2019-12-01 17:05:18
问题 I have a similar problem as CSS Auto Margin pushing down other elements: A right floating sidebar gets pushed down below the main non-floating content div. The answer proposed works: just reverse the order of the markup and write out the float div before the non-float div. For example, this: <div class="container"> <div id="non-floating-content"> fooburg content </div> <div id="float-right"> test right </div> </div> needs to be awkwardly re-ordered as: <div class="container"> <div id="float

How to have a 3 column layout with fixed left/right, fluid middle and fixed footer?

徘徊边缘 提交于 2019-12-01 06:47:52
How can i have a layout similar to this? I have seen a few solutions that are not quite right for me. Examples and comments I have seen suggest this is not possible. (Diagram is missing overflow auto in the middle). For what it is worth: here is my current fiddle (where I decided to trial a table, hrmmmm). http://jsfiddle.net/valamas/m8R43/6/ Additional : Printscreen as mentioned in comments. Occurs when dragging/selecting down the page after adding a header. See: http://dabblet.com/gist/3753308 If you're not too concerned about source order: http://dabblet.com/gist/3748868 It uses a bit of a

Enforce a “min-margin” for a fluid layout

妖精的绣舞 提交于 2019-12-01 03:50:01
I'm trying to build a site that works best at fairly high resolutions, but also slides as far left as possible when the resolution gets lower. I'm not even sure what code to copy in here, so the link is: projects.thomasrandolph.info What I need is for the left side of #page to stop sliding left at the right side of #logo plus a few pixels. It's 13.25em from the left of the page. I've set the left margin of #page to 13.25em , which looks correct, but at higher resolutions, the page looks strange because it's not centered. I want to retain the centering but also stop it sliding at a certain

3 column layout (fixed, fluid, fixed) with minimum width

▼魔方 西西 提交于 2019-12-01 00:47:26
I have searched the web and just cannot seem to find a clean, simple, all browser friendly 3 column layout. I am looking to have 3 column layout, the left column being 200px fixed with, the right column being 200px fixed with and the centre column the remaining width, but with a min-width of 600px. so the overall min-width is 200px + 600px + 200px = 1000px. I have seen a lot of examples where the columns seem to overlap each other when resizing the browser, which is a problem. Thanks If source order does not matter then one simple solution is to use display table/table cell. Make the wrapper

Enforce a “min-margin” for a fluid layout

大憨熊 提交于 2019-12-01 00:32:16
问题 I'm trying to build a site that works best at fairly high resolutions, but also slides as far left as possible when the resolution gets lower. I'm not even sure what code to copy in here, so the link is: projects.thomasrandolph.info What I need is for the left side of #page to stop sliding left at the right side of #logo plus a few pixels. It's 13.25em from the left of the page. I've set the left margin of #page to 13.25em , which looks correct, but at higher resolutions, the page looks