PDA

View Full Version : Adding rounded corners to featured content glider script



Dazza30
07-06-2008, 08:38 AM
1) Featured content glider

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm

3) Ive been playing around with this script and i like it, but i need to be able to make the corners of it round, is this possible?

jscheuer1
07-06-2008, 01:42 PM
You may be able to incorporate this:

http://www.cssplay.co.uk/boxes/snazzy.html

without too much trouble, as it is all css, no javascript. I'd just set up a 'snazzy' container around the glider, and set its (the glider's) outer borders to 0 (none, basically).

Dazza30
07-06-2008, 06:33 PM
Thanks jscheuer1

Ill take a look thanks for the help!

Dazza30
07-07-2008, 03:41 PM
You may be able to incorporate this:

http://www.cssplay.co.uk/boxes/snazzy.html

without too much trouble, as it is all css, no javascript. I'd just set up a 'snazzy' container around the glider, and set its (the glider's) outer borders to 0 (none, basically).


Thanks again for your assistance

Ive added the snazzy box to my page and put all the css in an external style sheet.

I was wondering if someone could take a look at the css and tell me how to position the box correctly.

Here's a link to the page http://www.superbargain.co.uk/test2.htm

and here's the snazy css http://www.superbargain.co.uk/snazy.css

I cant find anything in the css that i understand, there's no obvious width and height options to alter.

Dazza30
07-08-2008, 09:10 AM
Please can some advise me on how to alter the css i mentioned in the above post please?

jscheuer1
07-08-2008, 11:32 AM
This looked good in FF 2 developer extension (additions/changes highlighted):


#xsnazzy h1, #xsnazzy h2, #xsnazzy p {margin:0 10px; letter-spacing:1px;}
#xsnazzy h1 {font-size:2.5em; color:#fff;}
#xsnazzy h2 {font-size:2em;color:#06a; border:0;}
#xsnazzy p {padding-bottom:0.5em;}
#xsnazzy h2 {padding-top:0.5em;}
#xsnazzy {background: transparent; margin:1em;}

.xtop, .xbottom {display:block; background:transparent; font-size:1px;width:500px;}
.xb1, .xb2, .xb3, .xb4 {display:block; overflow:hidden;}
.xb1, .xb2, .xb3 {height:1px;}
.xb2, .xb3, .xb4 {background:#ccc; border-left:1px solid #08c; border-right:1px solid #08c;}
.xb1 {margin:0 5px; background:#08c;}
.xb2 {margin:0 3px; border-width:0 2px;}
.xb3 {margin:0 2px;}
.xb4 {height:2px; margin:0 1px;}

.xboxcontent {display:block; background:#ccc; border:0 solid #08c; border-width:0 1px;width:498px;}


.glidecontentwrapper{
position: relative; /* Do not change this value */
width: 490px;
height: 230px; /* Set height to be able to contain height of largest content shown*/
border: 0px solid #F8F8F8 ;
overflow: hidden;
margin-left:4px;
}


.cssbuttonstoggler{ /*style for DIV used to contain toggler links. */
width: 500px;
margin-top: 6px;
padding-left: 4px;
text-align: center; /*How to align pagination links: "left", "center", or "right"
background: white; /*always declare an explicit background color for fade effect to properly render in IE*/
overflow: hidden; /*See: http://www.quirksmode.org/css/clearing.html */
}

Dazza30
07-09-2008, 01:34 PM
Thanks again jscheuer1

Youve been a great help ill try this out later today

Dazza30
07-09-2008, 10:03 PM
Just tried the code jscheuer1 gave me and it works!

Thanks again jscheuer1


here's a link to view the featured content glider and the snazzy box css combined.

As you will see i still have a few layout issues to contend with concerning the actual placement of the box but it works.http://www.superbargain.co.uk/test2.htm