| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
mingin dawg baitch
|
Web applications - Pure CSS. - Discuss.
The question is how. Anyone built anything like an image gallery with 3 image rows with 5 image columns..using pure CSS. Or used ASP.NET without touching tables. I do agree that getting rid of tables is the way to go...but just wonder on the practicalities of doing it within web applications. For example look at this forum...built in tables..But is it really tabular data? I can think of countless other application that would require screen calculations to create absoulte positioned DIV's across the screen. Anyone any thoughts on this? |
|
|
|
|
|
#2 (permalink) |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,549
|
An image gallery with 3 rows and 5 columns is a piece of piss in css - check out floated definition lists. So CSS takes care of the layout, and your server-side code (asp in your case) takes care of populating the layout. A prime example of what you're getting at (the shortcomings of css for layout) is html forms, which if they are complex enough can be an absolute nightmare - and the 'solutions' for such layouts often include bloated (div-tastic) markup. In such cases it's tempting to use a properly marked up table, but hopefully with the upcoming xforms/webforms tech's and increased support of CSS2 and above (*looks at IE7*) this may get better soon. Not sure where you'e going with screen calculations + absolute positioned divs though, that sounds uncomfortably like a return to browser,screen-size and god-knows-what-else detection. Care to give some examples of what you mean and we'll do our best to show you how to do what you want without opening that bag of worms |
|
|
|
#4 (permalink) |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,549
|
Not sure what you mean by "Calendar Control", but there's been discussions about whether or not calendars are actually tabular data, in which case it would be semantically correct to use a table to store the data (which can then be formatted via css). The argument goes along the lines of "that [the calendar] is a matrix of cells that have a relationship to each other(the days and the numbers)" [quote from css-d], which I happen to agree with. The fact that eric meyer has an example up on his site (it's from one of the examples in his books), where he uses tables for calendar data (http://www.ericmeyeroncss.com/projects/03/) sways me even more. Of course that's not to say that an entirely non-table calendar isn't possible, but the code required would be far heftier and (imo) semantically incorrect. |
|
|
|
#6 (permalink) | |
|
Barney army!
Join Date: Mar 2003
Location: London
Posts: 692
|
Quote:
FWIW, standard forms are pretty easy markup/CSS wise (with a bit of tweaking for cross browser)...and I always use the following markup (some attributes ommitted): Code:
CSS styling is as simple as making LABEL's block elements, and applying position relative:, and then positioning the fields absolutely within the label elements (top: 0, left: however far over to the right you want them). There is a little bit more to it but thats about the basic principle. No floats, no bloated markup. The markup above forms the basis for my PHP5 library of Form generation classes (with built in submission detection/validation/processing) so making forms becomes much less hassle. Luke Redpath .::. Software Engineer .::. Reevoo - Real Reviews From Real Customers
|
|
|
|
|
#7 (permalink) | |
|
mingin dawg baitch
|
Quote:
Could you elaborate on this malarchy for me....I was under the impression that tabular data was (see attachment). Dont get me wrong im not taking a dig, I just think that theres nothing within a forum that constitutes hard tabular data. |
|
|
|
|
#9 (permalink) | ||
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Quote:
A table is... Quote:
Your standard forum index will have, say for DT..."Forum"..."Posts"..."Threads"..."Last Post". Under these four header cells are four columns and infinite rows, each listing a forum, number of posts for that forum, threads in that forum, and the most recent post in that forum. That's an orderly arrangement of data in columns and rows that are filled with related data. Same goes for listing of threads within a specific forum. It gets less tabular when you get into the individual threads, however. I'm not saying that a table is appropriate for everything within a forum, but for pages like that - it is appropriate. Last edited by pgo : 27-03-2005 at 09:27. |
||
|
|
|
#10 (permalink) | |
|
www.nakedintruder.com
|
Quote:
I'll have a try with this. |
|
|
![]() |