-
200612 Dec
Posted in Modules
In my previous post I don’t think I put enough emphasis on the fact that the Advanced Layout method may never happen; it could be dropped by the W3C, never implemented by the browser makers, or replaced by a better method.
However, let’s work on the assumption that it does get implemented and take a closer look.
As well as assigning each element a letter in the
displaydeclaration, there are two other characters which can be used: ‘@’ (at) and ‘.’ (dot). I want to explore the dot first.Note: We’ll use the four list items from the previous post in this example.
A dot signifies a blank (whitespace) column in the layout grid. It can be assigned a width (more in a future post). In use, it would look something like this:
ul { display: "a.b" "ccc" "..d"; }Which would give us an output like this:
One Two Three Four The @ symbol is a little harder to understand from the draft, but seems to signify where default content should lie in the rest of the template. In this example, I’m going to use images; let’s say we have the following code:
<div> <p>Lorem ipsum dolor sit amet.</p> <img src="some_image.gif" id="first"/> <img src="some_image.gif" id="second"/> </div>
And we apply styles to it as so:
div { display: "a@b"; } img#first { position: a; } img#second { position: b; }The output would be something like this:
[Image] Lorem ipsum dolor sit amet. [image] I’m sure you can begin to see the possibilities.
You can skip to the end and leave a response.
-
Comments
-
01.
Gagh, and that would mean that we would have to learn what . and @ means. This method is surely compact, but isn’t the intent of CSS to be easy to understand? Nah, I’ll keep what I said about the Advanced Layout Module being a step in the wrong direction.
(you have an error in the last CSS example, img#first is there twice)
-
02.
Anonymous Coward says:Comment » December 12th, 2006 at 11:09 pm
I think the purpose of CSS is to remove the layout from the markup (via a series of cascading styles).
I think this advanced layout mechanism is apropos of CSS, since it allows direct manipulation of layout of child elements, regardless of their order.
Personally, what I think CSS is lacking actual designer friendly features — such as being able to position a line, and have arbitrary elements align against it. (e.g. draw a line along the vertical center of of a div, then have selected elements align themselves against that line. — no, vertical-align: center; does not do this…)
-
03.
Thanks for pointing out the error; have changed that now.
-
04.
I think it may be a little complicated to use at first, but the more I look at it the better it seems to be. It will allow for certain layout styles which are more or less impossible at the moment, which is a good thing.
-
05.
Barry McGee says:Comment » December 14th, 2006 at 2:20 am
I agree with Peter, anything to give more control over elements on a page rather than nesting divs and floating elements the better!
-
06.
Weblog de Brainet » Archivo del weblog » ¿Cómo se harán las estructuras (“layouts”) dentro de unos años? says:Comment » December 17th, 2006 at 1:09 pm
[...] How we´ll lay out in websites in 2016 – Part Two [...]
-
07.
| martinpulido.com | blog | » Blog Archive » Cmo estructuraremos los websites en 2016 (II) says:Comment » December 19th, 2006 at 12:54 am
[...] Estoy seguro que puedes empezar a ver las posibilidades. Artculo Original: How we’ll layout websites in 2016 (II) [...]
-
08.
Ejemplo del módulo avanzado de layouts de css3…
¿Podremos llegar a usar esto algún día? Un ejemplo del módulo de layouts de la especificación CSS3…
-
09.
I think the purpose of CSS is to remove the layout from the markup (via a series of cascading styles) too
-
01.
TAG CLOUD
acid3
advanced layout
background
border
Browsers
color
css
CSS3.info
CSS WG
csswg
developer tools
disabled
dom
enabled
feedback
firefox
firefox 3.1
fonts
generated content
grid positioning
hixie
HSLA
HTML5
ie6
ie7
ie8
jina bolton
media player
Opera
Opera Dragonfly
presentations
RGBA
safari
selectors
slides
SVG
text rendering
UI
W3C
wasp
Web Fonts
webkit
windows







Leave a Comment