Rounded Corners

If you have created additional (non official) documentation or tutorials or something like that please post this here
Post Reply
miershpedankl
Posts: 39
Joined: Wed 8. Mar 2006, 13:19
Location: East Coast, USA
Contact:

Rounded Corners

Post by miershpedankl »

Good Day Everyone!

Can someone explain to me how to round the corners of the tables/blocks/boxes ?? on my site? (the-lee-family.us) I am gathering that it is a CSS thing, but I can't figure it out. Any help would be great.

Thanks,
miershpedankl
If you don't let ANYTHING happen to someone, then NOTHING will happen to them.
User avatar
Oliver Georgi
Site Admin
Posts: 9909
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

That's hard to say - there are many possible ways to have rounded corners.

CSS is a bit tricky because just Mozilla can handle rounded corners. So there are two possible ways at the moment. Use aligned images or just a combination of background images.

The most simple thing is this:

Code: Select all

<div id="wrapped">
<div id="top_corners">
<img src="toprounded.gif" width="200" height="15" alt="" />
</div>
<div id="content">
your content
</div>
<div id="bottom_corners">
<img src="bottomrounded.gif" width="200" height="15" alt="" />
</div>
</div>
related CSS

Code: Select all

#wrapped {
  margin:0;padding:0
}
#top_corners, #bottom_corners {
  width:200px;
  margin:0;
  padding:0;
}
#content {
  background-color:#FFFFFF;
  margin:0;
  padding:0 10px 0 10px;
}

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

Hi,

have a look here please:
http://cssplay.co.uk/boxes/snazzy.html
and here:
http://cssplay.co.uk/boxes/snazzy2.html
and here:
http://cssplay.co.uk/boxes/curves.html
and here:
http://cssplay.co.uk/boxes/krazy.html
:wink:
I like this site - teaches me a lot

greetings
claus
miershpedankl
Posts: 39
Joined: Wed 8. Mar 2006, 13:19
Location: East Coast, USA
Contact:

Post by miershpedankl »

You guys are great! Thanks for the replies. I am going to be checking out both of these recommendations and I'll let you know how it goes. http://cssplay.co.uk is great for people like me that don't have a lot of experience. :)

Cheers,
miershpedankl
If you don't let ANYTHING happen to someone, then NOTHING will happen to them.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

Hi,
...and I'll let you know how it goes...
How "goes" it? :wink:

Greetings
claus
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Post by isac »

POR :D TUGAL
nehemia
Posts: 118
Joined: Mon 11. Sep 2006, 21:19
Location: Fürth
Contact:

Solution for rounded corners / Lösung für runde Ecken

Post by nehemia »

Further Solution for margins with rounded corners without using grafics.

I found out a further solution for making margins with rounded corners. Please look here. (Sorry, I wrote it only in German).

Regards,
Martin Gohla


Weitere Lösung für Rahmen mit runden Ecken ohne Nutzung von Grafiken

Ich habe eine weitere Lösung zur Erstellung von Rahmen mit runden Ecken herausgefunden. Bitte schaut mal hier.

Viele Grüße,
Martin Gohla
miershpedankl
Posts: 39
Joined: Wed 8. Mar 2006, 13:19
Location: East Coast, USA
Contact:

Post by miershpedankl »

Ha -- I haven't even gotten around to this. I did, however, look at the CSSplay sites for a while and there is a lot of great info there! I just have to find some time to sit down and mess around till I get it right.

Whenever that happens I'll post something here letting everyone know how it went. :D

Thanks again for the replies!

miershpedankl
If you don't let ANYTHING happen to someone, then NOTHING will happen to them.
Post Reply