So I'm working on a replacement for HTML and CSS. Right now it's written in JavaScript and it renders to canvas. The reason I'm posting here is because you can write your own layout components in my system. So if you have a new idea, instead of waiting years for it to get standardized and supported by the browsers, you can just roll your own idea and run it in anywhere without any fuss. (Flexbox took years to do some…
Faster Layouts with CSS Grid and Subgrid
51–60 of 86 posts
Re: Faster Layouts with CSS Grid and Subgrid
#52All I want is a sticky, permanent header and footer and the rest of the page for text. (without the text going behind the footer/header) Can grid do this? I really don't like using javascript frameworks, I'm trying hard to keep my stuff pure html5/css3.
Re: Faster Layouts with CSS Grid and Subgrid
#53Re: Faster Layouts with CSS Grid and Subgrid
#54Faster as in less time to author or as in better performance?
Re: Faster Layouts with CSS Grid and Subgrid
#55All I want is a sticky, permanent header and footer and the rest of the page for text. (without the text going behind the footer/header) Can grid do this? I really don't like using javascript frameworks, I'm trying hard to keep my stuff pure html5/css3.
Re: Faster Layouts with CSS Grid and Subgrid
#56Earlier quoted context omitted.
Floats are still useful when you want to express structured document flow layouts with illustrations for nearby body text, side-nav link boxes, aligned or otherwise flow-parametered effects such as initials, syndicated/contributed content, or when you just want to float text around images.
Every time I thought I have needed float, I have always later found a cleaner way to do it without float.
A good example is the floating picture boxes next to paragraphs on Wikipedia. How would you implement such a feature without floats?
Re: Faster Layouts with CSS Grid and Subgrid
#57Earlier quoted context omitted.
Flexbox is great if you don’t have wildly different layouts across different screen sizes. If your layout is different enough that you’ll need media queries then you’ll want to use grid anyways.
> If your layout is different enough that you’ll need media queries then you’ll want to use grid anyways. Ehhh, not really. A common case is items laid out as boxes. On desktop I want them in rows of 3 to 5 (perhaps more on wider screens, but often this starts to look stupid beyond 4 or 5 so you set a max width for the container). And in mobile we want 1 item per row. With flexbox, you just change the width of the it…
Re: Faster Layouts with CSS Grid and Subgrid
#58Re: Faster Layouts with CSS Grid and Subgrid
#59Earlier quoted context omitted.
What’s VO and PTC? My mic is on a boom with a shock mount so the clacks really are just mellow background noise. I hate the loud bangs too.
VO -> Voice Over I assume. No idea what PTC is.
Re: Faster Layouts with CSS Grid and Subgrid
#60All I want is a sticky, permanent header and footer and the rest of the page for text. (without the text going behind the footer/header) Can grid do this? I really don't like using javascript frameworks, I'm trying hard to keep my stuff pure html5/css3.
If the header and footer are permanent, what does the text do as you scroll the page if not going behind those elements?