Topic: Cleanest way to build boxes with rounded edges, borders/dropshadows and gradients (Page 1 of 1) |
|
|---|---|
|
Paranoid (IV) Inmate From: London |
posted 05-29-2009 15:40
Hi, I've been working on a site the last week or so and I'm beginning to feel that I'm going about things the wrong way to build these panels that I've had from my design. code: <div class="panel">
<div class="innerPanel">
<p>This is the content inside my panel</p>
</div>
</div
code: div.panel {
background: url("../images/bg_panel_bottom.png") no-repeat 0 100%;
padding: 0 0 5px;
}
div.innerPanel {
background: url("../images/bg_panel_top.png") no-repeat 0 0;
padding: 5px 5px 0;
}
|
|
Paranoid (IV) Inmate From: Florida |
posted 05-30-2009 04:33
code: background: url(../images/alphatrans.png) !important; /* for all browsers but IE6 */ background: url(../images/indexed.png); /* for IE6, they won't miss the shadows anyways */ |
|
Obsessive-Compulsive (I) Inmate From: |
posted 11-26-2009 07:08
When I have to tackle creating containers like this I typically use this structure. code: <div class="container">
<div class="top"></div>
<div class="content">
<p>Stuff</p>
</div>
<div class="bottom"></div>
</div>
div.container { width: 200px; }
div.container div.top { background: url("top.png") no-repeat; height: 5px; }
div.container div.content { background: url("content.png") repeat y; padding: 5px; }
div.container div.bottom { background: url("bottom.png") no-repeat; height: 5px; } |
|
Obsessive-Compulsive (I) Inmate From: |
posted 11-26-2009 07:09
And as for the IE6 transparency bit Javascript is your only real option aside from reisio's suggestion of just making a separate graphic for IE6 only. I personally use a jQuery plugin called iFixPng. |
|
Paranoid (IV) Inmate From: Norway |
posted 11-26-2009 10:49
|
|
Paranoid (IV) Inmate From: Florida |
posted 11-27-2009 00:36
All you need is to add an extra program to your PNG creation process, or pay for Fireworks and learn Fireworks and learn a special PNG creation process, etc.! |
|
Paranoid (IV) Inmate From: London |
posted 11-27-2009 10:20
quote:
|