If this is your first visit, check our documentation. To post, register or login.

round corners

Locked

Started by oxicottin on 26 Aug 2007, 5:34 PM · Views: 20,004

Results 21 to 40 of 102
This thread is locked. New replies are disabled.
29 Aug 2007, 4:24 AM
#21
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

round corners

TrvlFox:

Have any of you used nifty corners or nifty layout? I see there is a template that included this. I was wondering which you liked better?

vicky

Nifty Corners is totally Cool!

Example template I'm making with lots of rounding goin on including rounded CSS buttons:

http://www.linuxpuppy.net

use "demo" for both username and password...

30 Aug 2007, 2:05 AM
#22
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: round corners

I want to try and use them for my ezpage links on the top. But I'm not sure exactly where to put the <div> and <ul><li> tags.

I'm pretty sure it goes somewhere around here

<code> <div id="topLinks"> <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); } ?> </div> </code>

any ideas?

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

30 Aug 2007, 3:12 AM
#23
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: round corners

You don't change your Zen Cart code to use Nifty Corners (well, you can if you are being creative), you put the javascript in all the right places (use the NiftyZen template as a guide) and then tell Nifty what to round.

My Nifty config file for that demo site is this:

/nifty corners layout/
NiftyLoad=function(){
Nifty("div#KimWrapper","big transparent");
Nifty("div#roundEZPageNav", "normal transparent");
Nifty("h3.leftBoxHeading","normal top transparent");
Nifty("h3.rightBoxHeading","normal top transparent");
Nifty("div.sideBoxContent","normal bottom");
Nifty("div#cartWrap","normal");
Nifty("div.cartWrap2","normal");
Nifty("div#shippingMethodTable","normal transparent");
Nifty("div.cssButton","small");
Nifty("div#cartAdd","small transparent");
Nifty("div.centerColumn","normal transparent");
Nifty("div#navBreadCrumb","normal transparent");
Nifty("div#navEZPagesTOCWrapper","normal transparent");
Nifty("h2.centerBoxHeading","normal transparent");
Nifty("div#navColumnOneWrapper,div#navColumnTwoWrapper,div#KimContent", "same-height transparent");
}

30 Aug 2007, 3:38 AM
#24
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: round corners

TrvlFox:

I want to try and use them for my ezpage links on the top. But I'm not sure exactly where to put the <div> and <ul><li> tags.

I'm pretty sure it goes somewhere around here

<code> <div id="topLinks"> <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); } ?> </div> </code>

any ideas?

TrvlFox , Please start a new thread. Thanks!

30 Aug 2007, 4:26 AM
#25
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: round corners

Clyde here is the files im using... Hope this helps!

Thanks,
Chad

31 Aug 2007, 2:22 AM
#26
arnold931 avatar

arnold931

New Zenner

Join Date:
Jun 2007
Location:
frozen land of Nador
Posts:
23
Plugin Contributions:
0

Re: round corners

Rounded corners using CSS vs images vs Nifty Corners.
Are there advantages or disadvantages to any of these?
Will any be more difficult or easier to maintain?
I see where Nifty uses javascript. Could there be compatibility issues with some browsers?

31 Aug 2007, 9:07 AM
#28
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: round corners

arnold931:

I see where Nifty uses javascript. Could there be compatibility issues with some browsers?
It will require java script to be enabled so yes some might not have this, but there are fewer and fewer as time passes

Zen-Venom Get Bitten

2 Sep 2007, 1:13 AM
#29
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: round corners

Last reply.

I finally figured out a work around method for my nifty tabs. If you are interested, I posted what I did on http://www.zen-cart.com/forum/showth...422#post425422

Vicky
(feeling mighty proud of herself right now...)

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

7 Sep 2008, 11:24 PM
#30
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: round corners

gjh42:

Clyde's instructions were for rounding the center column. To round the mainWrapper, you should be able to transfer the code to just below the <div id="mainWrapper"> and the ending code to just above the mainWrapper </div>. This will be just above the

<!--bof- parse time display -->

comment.

Gents, great contributions, all off you, very helpful, much obliged.

Anyway I just got stuck doing this middle piece and trying to get the navbar having rounded corners.
Clyde's code works but it gets the rounded on the whole middle section which wasn't what i was after, i just want the navbar to be rounded.

Then i will make all the middle bars rounded as well.
There is an issue though with clyde's code that it gets the job done, but it narrows the max width to around 150 px which is a bit slim

If i use the guidance in this one then i do get some part of the bar rounded but it places the text out of it, or smething, it is blurred :)

Any thoughts how i should get just the navbar done?
www.engeltjesendraken.nl/winkel
it's the green bar :)

cheers

8 Sep 2008, 12:06 AM
#31
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: round corners

Take a look here.

https://www.actionfigures4u.com

I had the same dilema, i used 3 images, simple, no coding just save the 3 images in your stylesheet.

Disadvantages, you need to create 3 images but not really a disadvantage if you don't mind images. They will make the page load slower also but once again the customers i have usually use high speed connection anyways so to me personally no disadvantages.

I don't think you will get drop shadows in CSS but with images you can have any look you wish.

13 Sep 2008, 10:15 AM
#32
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: round corners

first trading:

Take a look here.
www.actionfigures4u.com
I had the same dilema, i used 3 images, simple, no coding just save the 3 images in your stylesheet.

Thanks, at least now i have an option to do the middle section as well. Don't mind using images, but i noticed they won't scroll down to the actual window size, so i will have to accept a fixed size for the middle frame.

Or is there a way to get around this as well (maybe with using png files?)

Anyway, thanks for the input, i like the look of your site.

13 Sep 2008, 7:48 PM
#33
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: round corners

you can have box any size like the ones in my site. there are no restrictions my friend.

simply make an image for the header.

make an image for the footer.

make an image for the sides, please note that the image for the sides is simply a background image and you just apply the following.......

background-image: url(../images/YOUR_IMAGE.gif);
background-position: bottom-center;

you don't have to repeat the image, every time there is a line of text in the box it uses the background image, so your box could have 1 item or 100 items in it but it will look the same.

13 Sep 2008, 7:56 PM
#34
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: round corners

Forgot to add, thanks for the comment.

Make the center image (the sides of your box) higher than the text that will appear in the box and this way the sides will keep overlapping themselves up and down giving a seemless effect.

tell you what i'll put together a better description with pics.....

13 Sep 2008, 7:58 PM
#35
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: round corners

nagelkruid's problem is that the center div only expands enough to fit its content, not all the way to the bottom of the window.

This is a limitation of the div/CSS system, and is one of the few things where tables are superior in getting desired appearances.

13 Sep 2008, 8:05 PM
#36
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: round corners

You've lost me i'm afraid, i'm only a begginer here.

The contents of my boxes only expand to the contents also.

For example none of my boxes are fixed in size, is this what you mean...?

13 Sep 2008, 8:22 PM
#37
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: round corners

Sorry, just read the thread back, i see what you mean.

You want the center boxes round also...? or just the nav bars...?

I have been able to achieve both.

14 Sep 2008, 7:08 PM
#38
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: round corners

first trading:

You've lost me i'm afraid, i'm only a begginer here.

The contents of my boxes only expand to the contents also.

For example none of my boxes are fixed in size, is this what you mean...?

Its the same here, i am experienced with computers/scripts but a little green on the web coding.
Probably the very reason why my css looks like a mess (at least to me) and why it doesn't always change things on my site when i change stuff in the css :)

Also, this site has been running for about 2 years and i just upgraded to v1.3.8 which triggered me to finally do something about the lay-out as we are doing reasonably ok.
I can see now there is still a lot of rubish/old stuff in there that should actually be removed, but as i can't break anything i'll have to go slow on this. (i do test with xamp locally first:wink:)

What i meant was, when my site is pagewide on a big resolution screen the site will stretch to the full extend of the browser and it will not have the fixed frame the standard zen-template uses.
However, there is no minimum set either so if you make the browser window very small it will all shrink in eachother untill it looks hilarious :blush:

This may be what gjh42 is meaning with the div/css remark but to be honest i am not sure what he means either.
It may be there is some stuff in there from 2 years ago that is now obfuscating things on this site...

I just managed to get the rounded search box in from the cherry-zen format, and as that is using an image from the css as well, i think i should be able to get it to work...

Thanks,
Jeroen

www.engeltjesendraken.nl/winkel

14 Sep 2008, 8:06 PM
#39
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: round corners

"i noticed they won't scroll down to the actual window size"

I thought you meant by this that your centerbox did not stretch all the way to the footer like a side column does. If you really meant that the box sides didn't go all the way to the bottom of the box, that is a completely different problem, and first trading is on the right track.

If you make an image for the heading, one for the bottom of the box and one for the sides```


/ \

| |
| |

______/

These will work for a box that has a wrapper or container div, a heading div and a content div.
Attach the top to the heading, the bottom to the content and the middle to the container with repeat-y so it repeats vertically for the full height of the box. The top and bottom want to be no-repeat.

The centerboxes typically have only a container div and a heading div, so you can't use three images. For this, make a top image attached to the heading and a middle/bottom image attached to the container. Make the sides of the middle taller than any box you will ever have.```
 ______
/      \


|      |
|      |
|      |
|      |
|      |
|      |
|      |
|      |
|      |
|      |
|      |
|      |
|      |
|      |
|      |
|      |
\______/
14 Sep 2008, 8:28 PM
#40
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: round corners

This is what i have.............

As you can see what i have done is used 3 images, a slight optical illusion with the top and bottom of the box to give a rounded feel inside of the box also.

in my style sheet i have not repeated the side sections as you don't need to, it is set as a background image so every time there is content in your box it simply adds another section of the background (the sides of the box image).

The other way is exactly as gjh42 has said, i just found this way easier for me.