Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Feb 2008
    Posts
    36
    Plugin Contributions
    0

    Default Template modding with CSS rounded boxes/borders. How To?

    OK so with the help of a few decent helpful people, namely kobra, stevesh, and swguy I managed to get the Future Zen template installed and configured a good bit of the backend of my store. I then set about the aesthetic appearance of things and was trying to get a rounded box to sit around/behind the center of the page. This took me a long time and there was great wailing and gnashing of teeth. However using Snazzy Borders I finally got the sort of the layout I wanted, and was just about to go and make some decent images to replace the ones on the site, when I thought I'd better just give it all a check in IE and Chrome.

    Oh dear. My rounded box courtesy of Snazzy Borders works properly in neither of the other browsers. Rather than try to fix this problem I'm wondering if there is anybody out there who would be able to hazard a guess how to integrate the following with Zen Cart? because not only is it better looking on the page but it appears to be perhaps more simple than the code that is used in Snazzy Borders. I tried positioning the DIV tag in the same place as the first Snazzy Borders <DIV> tag in tpl_main_page.php and the </DIV> where the last Snazzy Borders </DIV> tag was but that hasn't worked. I'm wondering really if anybody can explain why it hasn't worked or even tell me if what I am trying to do is possible given the code below.


    TL;DR : How can I get these types of rounded borders working in Zen Cart?

    the css

    Code:
    #border-radius {
    		  	display:inline-block;
    		  	padding:1em;
    		  	border:3px solid #999;
    		  	-moz-border-radius:8px;
    		  	-webkit-border-radius:8px;
    		  	-opera-border-radius:8px;
    		  	-khtml-border-radius:8px;
    		  	border-radius:8px;
    		}
    
    		#border-radius2 {
    			display:inline-block;
    			border:3px solid #999;
    			padding:1em;
    			-moz-border-radius:32px;
    			-webkit-border-radius:32px;
    			-opera-border-radius:32px;
    			-khtml-border-radius:32px;
    			border-radius:32px;
    			text-align:center;
    			width:13em;
    			margin-left:1em;
    			background:#eee;
    		}
    
    		#border-radius2 pre {
    			background:transparent;
    		}
    
    		.css-demo {
    		  	margin-bottom:1em;
    		}
    
    		.css-demo pre {
    		  	background:transparent;
    		  	margin:0px;
    		  	padding:0px;
    		  	border:none;
    		}
    XHTML
    Code:
    <!--example 1
    <div id="border-radius" class="css-demo"></div>
    	
    <!----example 2
    <div id="border-radius2" class="css-demo"></div>
    also while I was on my travels I found this site which has a collection of different CSS rounded box styles some using images and some without. Some of them are very pleasing on the eye.

    Also this is my potential store here

    [EDIT]
    Actually here is the place that css up above came from, there's code for nifty drop shadows as well.
    Last edited by SeánT; 27 Sep 2010 at 12:40 AM.

 

 

Similar Threads

  1. Rounded Corner Borders
    By BeautyHealth.com.cy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Nov 2010, 02:13 PM
  2. Rounded Borders Using Snazzy Borders
    By Lawbird123 in forum Templates, Stylesheets, Page Layout
    Replies: 71
    Last Post: 30 Jul 2010, 01:37 PM
  3. Highlighting sales text & customizing borders (rounded edge, dashed, zig-zag?)
    By stormysar in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Feb 2008, 04:57 PM
  4. rounded corner borders for sideboxes
    By sparkyclark in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Jul 2006, 04:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg