February 2nd, 2004, 11:37 PM
css design principles related to rounded corners
I have a basic layout that I'm working on right now (a gif is attached), but I can't figure out the best way to code it.
I know the corners have to be gif images. That's easy enough. What I'm wondering, is whether the top and side sections can be div's with corresponding borders or if I'm going to have to use images all around the center div. I'd really like to use as little bitmap imagery as possible just to get used to working conservatively instead of just laying everything out with images.
I'm still new to CSS layouts, and I've seen some good tutorials, but not much related to escaping the blocky look traditionally associated with them. I know a list apart has a good article on rounded corners, but it didn't seem to apply here.
Thanks for your time
February 3rd, 2004, 12:02 AM
Well, since there are only two curved things on the page, you could cut them into squares and float them in the positions you need using ABSOLUTE positioning with layers. You could also make one tall rectangle, which contains both the rounded top & bottom, assuming that the light blue area isn't supposed to expand. You can't easily draw the curved lines in CSS, so you will have to convert that stuff to GIF files.
just my 2 cents.
February 3rd, 2004, 12:46 AM
Hmm, I didn't think about absolute positioning, lol. I'm still used to the limitations of tables .
On that note, are there any problems associated with absolute positioning? Browser slowdown or anything like that?
Thanks a bunch
February 3rd, 2004, 01:01 AM
the best way to think about tables is:
Tables are for tabular data.
Tables are not for layout.
February 3rd, 2004, 01:07 AM
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.
My html and css workshop
, demos and tutorials.
Ask a better question
, get a better answer.
February 4th, 2004, 01:57 AM
I understand what tables are suited for, I was just speaking of the fact that they're seldom absolutely positioned, so I hadn't thought of it.
Thanks for the links, I'll be sure to check them out soon