[themes] Rounded corners like drupal.org

Richard Burford rich at freestylesystems.co.uk
Wed Apr 16 17:57:37 UTC 2008


Sounds like you need to use block.tpl.php http://drupal.org/node/11813

psynaptic
http://freestylesystems.co.uk

On 16 Apr 2008, at 18:21, Sean Wingert wrote:
> Richard wrote:
>>> There are so many different ways you can do
> it and there are even sites whose sole purpose is to showcase these
> different methods.
> http://www.google.com/search?hl=en&q=rounded+corners+css
>
> Richard, your message's link to Google turned out to be awesome! It  
> lead me to try http://www.schillmania.com/content/entries/2006/04/more-rounded-corners/ 
> . I'm using Panels2 and Views. The link's approach works well, but  
> only when I insert "custom HTML code" in Panels2, or create a custom  
> block containing HTML (I'm using the sample code below).
>
> However, this approach doesn't seem very Drupal-ish--meaning, static  
> HTML renders translations inoperable since nothing passes through  
> t() and changes to the drupal menu aren't (obviously) updated in my  
> static code. How do I wrap that--or the drupal.org--approach into  
> the Drupal menu system? Do I need to create a custom region in a PHP  
> Template, and therefore review the VanDyk / Westgate chapter on  
> Theming?
>
> <!-- most basic example -->
> <div class="dialog">
> <div class="content">
>  <div class="t"></div>
>  <!-- Your content goes here -->
>  <h1>Even <em>More</em> Rounded Corners With CSS</h1>
>  <p>Here is a very simple example dialog.</p>
>
>        <li class="round-li">
>                <a title="An assortment of high-quality products"  
> href="/products">Products</a>
>        </li>
>
>  <p>Note that if gradients are used, you will need a "min- 
> height" (or fixed height) rule on the body of the dialog. If these  
> examples appear funny at the bottom, it is because they do not  
> enforce the min-height rule.</p>
> </div>
> <div class="b"><div></div></div>
> </div>
>
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes



More information about the themes mailing list