rounded corener and effects in block

smcochin - February 27, 2008 - 07:39

to create rounded corners in blocks, there many ways, which is the best in puplat three ways
1) with 2 images -
http://mydrupalblog.lhmdesign.com/theming-sidebar-drupal-style-part-1

2) with 4 images
http://geeksandgod.com/forum/rounded-corners-block
http://drupalworx.com/node/15

3) jquery
http://www.malsup.com/jquery/corner/

And also which best
a) creating dropshadow, gradient, stock etc using jquery and css
or
b) image (created in photoshop,gimp) and css

Personal choice

uzbekjon - February 27, 2008 - 09:53

Well, it's a personal choice isn't?!

Since you already have jquery with your drupal installation.. why not use it. Personaly I use2 images for smaller blocks and 4 images for bigger boxes like content box...

Make your choise according to your own requirements. Do you want your code to have less tags or validate or something else...

Make your own choice!!!

-------------------------------
Sites for uzbeks and Uzbekistan:
Uzbek Lyrics Database
Uzbekistan Forum

ommm

smcochin - February 27, 2008 - 12:07

what are the pros and cons of each. Kindly give me specific detailes

Correct me if I'm wrong, but

KayGee - February 27, 2008 - 15:14

Correct me if I'm wrong, but I don't think it's possible to create rounded corners like these by using jquery.

Kirk

it is the disussion

smcochin - February 28, 2008 - 01:53

on which way is best

anyway, http://www.sastgroup.com/?p=1332 here you will get a clear picture to how to do

yes

smcochin - February 28, 2008 - 02:12

Do you want your code to have less tags or validate or something else...

yes

how would be the page loading

smcochin - March 1, 2008 - 06:27

speed and beaty if images used instead of javasript

If your sidebars are of a

criznach - March 2, 2008 - 02:38

If your sidebars are of a fixed width, it's very easy to get away with minimal markup and clean CSS using the top/bottom image method. If you want both variable width and height, you may need to use a 4 image or Javascript method. The 4 image method creates a lot of "tag soup", which is not much better than tables IMHO. I prefer to make the sidebars a fixed width, and variable width content, but to each his own.

It is possible to do some creative things, however... In most Drupal themes, you have two nested elements (title and content) inside of a container for each block. So you could probably do a three-cornered effect without adding any markup at all.

 
 

Drupal is a registered trademark of Dries Buytaert.