Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Getting rid of style="width:33%;"

Getting rid of style="width:33%;"

Views: 478

Results 1 to 3 of 3
15 Apr 2013, 12:25 PM
#1
emzdesign avatar

emzdesign

New Zenner

Join Date:
Aug 2009
Posts:
3
Plugin Contributions:
0

Getting rid of style="width:33%;"

Hi

I'm modifying a theme making changes to its stylesheet, but there is this ```
style="width:33%;"


The full html of the section I'm trying to modify is this:

<div class="centerBoxContentsFeatured centeredContent back" style="width:33%;"> ```

I'd like to get rid of this percentage as it's over riding the width I have set in the stylesheet.

Any help would be much appreciated.

Thanks

15 Apr 2013, 1:47 PM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Getting rid of style="width:33%;"

did you try:

width:100px!important;

15 Apr 2013, 1:51 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Getting rid of style="width:33%;"

emzdesign:

Hi

I'm modifying a theme making changes to its stylesheet, but there is this ```
style="width:33%;"

> 
> The full html of the section I'm trying to modify is this:
> 
> ```
<div class="centerBoxContentsFeatured centeredContent back" style="width:33%;">

I'd like to get rid of this percentage as it's over riding the width I have set in the stylesheet.

Any help would be much appreciated.

Thanks

That is set in the PHP code and is mathematically calculated according to the number of columns set.

If you use DEVELOPER TOOL KIT in your TOOLS menu, and search for style="width you will find files in which it features. But don't just "remove" it... You need to understand how it calculates the width.