| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Sep 2005
Posts: 14
|
Hi guys ok iam still not convinced that css could ever take over tables because of things like this. In my latest design I have rounded boxes shown above that need a red border, inner glow and a red title section at the top. now using html tables this is piss easy to do with a minimal amount of code that positions images around the edge. I've search around the net for a way to do this is css, I have found a few methods to acomplish this, but the only ones I've found use mountains of code and sometimes a crappy seperate javascript file also with mountains of code, which seems like a whole lot of code for something so simple. If anyone knows a way this can be done exsacly like the picture above in less than 50 lines of dam css code I will gladly eat my hat and may consider using css more. |
|
|
|
|
|
#2 (permalink) | |
|
Zły
|
Quote:
Eat your hat, you have no clue what you are talking about kid. |
|
|
|
|
#4 (permalink) |
|
Work faster microphone ..
Join Date: Feb 2003
Location: Dubai
Posts: 1,739
|
how would you go about doing that with a re-sizable box? Curious as we've just done this having to re-work an old fluid width table based design with loads of rounded corners into css ( my eyes are still twitching) so it works with our content management system (can you believe they wouldn't stump up 10% on top of the total cost for a re-design? bloody thing took longer to make using the old horrible design regardless.. but anyway) |
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Sep 2005
Posts: 14
|
Ah now you see that would be good but i think tables takes the next round aswell, as resizable is kind of a must when it comes to boxes containing text. If i wanted to do lots of different sized boxes or add more text to that box i would have to make lots of different sized images for backgrounds? thats nasty. |
|
|
|
#6 (permalink) | |
|
Barney army!
Join Date: Mar 2003
Location: London
Posts: 692
|
If its between using tables or coming up with a simplified design, I take the latter. But its doable anyway. And if needs some javascript, thats fine as long as it degrades normally without it (same box, no rounded corners). As for this: Quote:
CSS is already taking over tables, and frankly anybody still using table based layouts professionally in a few years time should be considered a joke. Luke Redpath .::. Software Engineer .::. Reevoo - Real Reviews From Real Customers
|
|
|
|
|
#7 (permalink) | |
|
Floating libation anyone?
|
Quote:
Bad form... fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!
New to interweb design? Your friends at dt can help. |
|
|
|
|
#8 (permalink) |
|
unusual suspect ™
Join Date: Jul 2004
Location: DE, USA
Posts: 3,116
|
Here's something I've been playing with, no tables of course: http://www.designagency.us/dev1/index2.html Rounded, expandable boxes aplenty. |
|
|
|
#9 (permalink) | |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Quote:
Let's ignore "Tripper" he obviously doesn't know what he's talking about, and as you said, Luke, anyone using tables as a layout device in the next few years will be considered a joke. I already consider them jokes. Especially the ones who incite flame wars about how tables are so much better for layout when the simple fact remains, he's suggesting using the wrong tool for the job. He's arguing that we use hammers to drive screws in. All we have to do is ignore it and use our screwdrivers. |
|
|
|
|
#10 (permalink) |
|
who the fuck am i?
|
surely the only problem with rounded corner boxes is when using a fluid layout? Insofar as you cant simply use one header/footer image if the width of the box is changing. It's a bit of a pain but it can be done... its just not a pleasant job. Ive personally never had a problem getting the bottom image to descend depending on the amount of text within the box. And where the hell have you been searching for examples, Tripper? There are examples of this technique all over the net |
|
|
|
#11 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
It's laughably easy to create an expandable rounded-corner box with a fixed width. Not quite as easy when it needs to scale along both axes, but still attainable relatively simply. Just look at www.mozilla.org |
|
|
|
#15 (permalink) |
|
now with added beard
Join Date: Mar 2004
Location: Liverpool
Posts: 5,602
|
I can't be arsed trying to figure out the resizable CSS etc, but I'm sure it can be done. Whether you like CSS or not - it is a developing area. You can keep your tables, and shove 'em up your arse along with your VHS tapes, 8 track cartridges and your BBC Micro ... fuck signatures
|
|
|
|
#19 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
You could do it this way... http://www.redmelon.net/tstme/4corners/ ...though it requires extra, non-semantic markup. Or this way - http://www.vertexwerks.com/tests/sidebox/ . Not as much markup as with a big ol' table, though. To make it fluid (expandable in all directions) with a table I think you'd have to do it like so... HTML Code:
|
|
|
|
#20 (permalink) |
|
unusual suspect ™
Join Date: Jul 2004
Location: DE, USA
Posts: 3,116
|
I've pulled one of the boxes from the WIP I posted above... with it you can see how the box will scale both horizontally and vertically. It will break fairly quickly because I only created the images to work in the confines of the design shown previously but you can get the idea if you start by dragging your browser to be as narrow as possible then resizing outwards and seeing how the box moves in both directions. http://www.designagency.us/dev1/just-a-box.html |
|
![]() |