Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Pure CSS Rounded Boxes! (no images, no tables)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #171  
Old 09-05-2009, 01:11 AM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

hmmm... please 4.2 please
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #172  
Old 09-06-2009, 02:55 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,962
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

Been asked for this many times, so I have this mod available if anyone's interested. Makes the job very easy, with minimal markup.
__________________
XCARTMODS.CO.UK | reBOOT reDUX Template | reBOOT reDUX Changelog | ViViD Template (work in progress)
Reply With Quote
  #173  
Old 10-26-2009, 08:38 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

use this for 4.2 menus

<div class="menu-dialog{if $additional_class} {$additional_class}{/if}">

<div class="xrounded">
<b class="xtop"><b class="xb1"></b><b class="xb2 color_a">
</b><b class="xb3 color_a"></b><b class="xb4 color_a"></b></b>
<div class="xboxcontent">
<h1 class="color_a">{if $link_href}<a href="{$link_href}">{/if}{$title}{if $link_href}</a>{/if}</h1>
<div>
{$content}</div>
</div>
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b>
<b class="xb2"></b><b class="xb1"></b></b>
</div>
</div>
__________________
xcart 5.1.2
Reply With Quote
  #174  
Old 10-26-2009, 01:57 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

or (for v4.2.x)....

Code:
Mods - replaced entire contents to make rounded boxes *} <div class="xrounded{if $additional_class} {$additional_class}{/if}"> <b class="xtop"> <b class="xb1"></b> <b class="xb2 color_a"></b> <b class="xb3 color_a"></b> <b class="xb4 color_a"></b> </b> <div class="xboxcontent {if $additional_class} {$additional_class}{/if}"> <h1 class="color_a" align="center">{if $link_href}<a href="{$link_href}">{/if}{$title|escape}{if $link_href}</a>{/if}</h1> <div class="menu-list content{if $additional_class} {$additional_class}{/if}">{$content}<br /></div> </div> <b class="xbottom"> <b class="xb4 color_a"></b> <b class="xb3 color_a"></b> <b class="xb2 color_a"></b> <b class="xb1"></b></b> </div>

The difference is the "additional classes" and the break tag at the end. Sometimes its needed, and sometimes its not. Yoou can tell you need one if you have a "blank" spot at the bottom of your rounded box.

You can use the same code for your customer/dialog.tpl and customer/menu_dialog.tpl. Just remember, it will screw up your checkout page, the one were it asks if you are a returning customer or a new one. What I did was use the original customer/dialog.tpl (renamed to flc-dialog.tpl) and called it in skin1/modules/Fast_Lane_Checkout/checkout_0_enter.tpl.

You can also change the colors between the two (menu and main page dialog) by adding the classes xboxcontent2 (for the main background) and color_b (use it at the bottom instead of color_a), making them whatever color you choose (everything else is the same).
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #175  
Old 11-15-2009, 07:38 AM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

Great info for 4.2

Quick question though, when I implemented the code my menu items changed from:

Left justified with no bullets

to

Centered with bullets

Any ideas?
__________________
Gold 4.2.0
CDSEOPRO v.1.3.1
Advanced MiniCart
ezUpsell
One Page Checkout
Drug Test Kits
Reply With Quote
  #176  
Old 11-18-2009, 04:31 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

Quote:
Originally Posted by Tim CDN
Great info for 4.2

Quick question though, when I implemented the code my menu items changed from:

Left justified with no bullets

to

Centered with bullets

Any ideas?

Its probably the "additional class" thing. If you look at your .xboxcontent class in your stylesheet it probably doesn't have any settings for "li" or "ul" (those are called in the tpl for the particular "box" you are working on).
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #177  
Old 12-13-2009, 09:09 PM
 
wplume wplume is offline
 

Member
  
Join Date: May 2005
Location: Missouri, USA
Posts: 29
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

Great mod-just can't figure out how to completely fill the boxes with a backround color-it seems to come up short at the bottom of all the boxes. Any ideas?

www.icai-online.com
__________________
cnctech
v4.1.9
CDSEO Pro
Advanced Mini-Cart
AOM
Remember Me
Remember Anonymous Carts
BCS Fast Lane Shipping Estimator
BCS Order Page Emailer
BCS Authorize.net DPM
BCS Inventory Pricing
Checkout One
Reply With Quote
  #178  
Old 12-13-2009, 09:12 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

Probably the border colour of the menu, change the border to the same as the background
__________________
Gold 4.2.0
CDSEOPRO v.1.3.1
Advanced MiniCart
ezUpsell
One Page Checkout
Drug Test Kits
Reply With Quote
  #179  
Old 12-13-2009, 09:30 PM
 
wplume wplume is offline
 

Member
  
Join Date: May 2005
Location: Missouri, USA
Posts: 29
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

Tim

Thanks for the quick response. I changed the border-left: 1px & border-right: 1px colors to the same color as the background color in the xboxcontent string and it made no difference-any other idea's?

Thanks
__________________
cnctech
v4.1.9
CDSEO Pro
Advanced Mini-Cart
AOM
Remember Me
Remember Anonymous Carts
BCS Fast Lane Shipping Estimator
BCS Order Page Emailer
BCS Authorize.net DPM
BCS Inventory Pricing
Checkout One
Reply With Quote
  #180  
Old 12-14-2009, 03:45 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Pure CSS Rounded Boxes! (no images, no tables)

Quote:
Originally Posted by wplume
Great mod-just can't figure out how to completely fill the boxes with a backround color-it seems to come up short at the bottom of all the boxes. Any ideas?

www.icai-online.com

What I did was add

.color_b {
background:#000; /* Change the bottom part color here*/
}

to my skin1.css and modified my menu.tpl so that at the bottom it is

<b class="xbottom"><b class="xb4 color_b"></b><b class="xb3 color_b"></b>
<b class="xb2 color_b"></b><b class="xb1"></b></b>
</div>

You shouldn't have to mess with your borders.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:10 PM.

   

 
X-Cart forums © 2001-2020