|
| |
|
|
rdouglass
Posts: 9228 From: Biddeford, ME USA Status: offline
|
CSS Calendar Layout - 4/12/2006 11:19:13
OK. So, inspired by another thread, I'm taking it upon myself to write a CSS freindly calendar. I have put together a start and am in need of some CSS critics (Ah! got some attentions. ) I have a very beginning start here: http://www.clarkinsurance.com/rd/ and this is strictly for layout purposes. What I essentially started with was a nested <div> setup like this: <div style="position:absolute;width:600px;top:0px;"><!-- begin row div--> <div class="nestedCell"><!-- begin Sun div--> Sun <div class="nestedCell"><!-- begin Mon div--> Mon <div class="nestedCell"><!-- begin Tue div--> Tue <div class="nestedCell"><!-- begin Wed div--> Wed <div class="nestedCell"><!-- begin Thu div--> Thu <div class="nestedCell"><!-- begin Fri div--> Fri <div class="nestedCell"><!-- begin Sat div--> Sat </div><!-- end Sat div--> </div><!-- end Fri div--> </div><!-- end Thu div--> </div><!-- end Wed div--> </div><!-- end Tue div--> </div><!-- end Mon div--> </div><!-- end Sun div--> </div><!-- end row div--> Now there seems to be a few minor issues right now between FF and IE and I'll work them out in terms of image backgrounds and such but my main Q is in terms of the layout. Is this the best I can do? Anyone have any ideas as to how to make this layout more fluid? To me it just looks like a table (although it is not) and quite static. The nested div's work but have some unwanted side affects; Can't comfortably use em's for font sizing for one. Anything other than 1em 'cascades' the changes from div to div. I remember reading once regarding pseudo-classes using percentages for div widths but I cannot remember where. Any other input regarding layouts are encouraged and appreciated. Content (and what to use for the content engine) will come later. Two of my requirements for any suggestions are **No Javascript** and **No Tables**.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
Tailslide
Posts: 6046 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: CSS Calendar Layout - 4/12/2006 11:56:35
It's not often you'll hear me say this... but I'd use a table - it would be reasonable and actually semantic to call that tabular data. My definition (or one I stole) of tabular data is where you can turn the information round on it's axis and it still makes sense. I think the inheritance issues you'll get with so many nested divs will be real headache. Stu Nicholls has a couple of CSS only calendars if that's of any help: http://www.cssplay.co.uk/menu/calendar2.html Sorry that's not much help at all...
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
rdouglass
Posts: 9228 From: Biddeford, ME USA Status: offline
|
RE: CSS Calendar Layout - 4/12/2006 12:39:38
quote:
Sorry that's not much help at all... Actually it is. Thanks.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
rdouglass
Posts: 9228 From: Biddeford, ME USA Status: offline
|
RE: CSS Calendar Layout - 4/12/2006 12:41:58
quote:
but I'd use a table Just a Q regarding this: How would that and Accessability work together. The way I'm understanding this is that accesable web sites don't like tables. Or am I reading more into this than is actually there (or maybe this Q belongs in the other forum?)
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
Tailslide
Posts: 6046 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: CSS Calendar Layout - 4/12/2006 13:01:25
There's nothing wrong with using tables as long as they're used properly - i.e. not for layout purposes. For tabular data they are the correct way of presenting the info - you can make tables more accessible by adding various little extras - this is a good explanation of the different techniques (there are a couple) : http://www.jimthatcher.com/webcourse9.htm BTW - there are those in the "semantic" web movement who will argue to the death about the correct usage of various bits of markup such as tables and definition lists. I've seen arguments either way regarding calendars - but in my mind, the tester is as mentioned previously - turning the data around and see if it still makes sense - if it does then it's probably tabular and should be in a table.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|