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

Use of <b> or <strong> in define pages

Started by swguy on 17 Mar 2014, 11:49 PM · Views: 1,357

Results 1 to 12 of 12
17 Mar 2014, 11:49 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,768
Plugin Contributions:
56

Post #1 by swguy

I have noticed that although the default define_main_page.php file includes the text:

<p><strong>NOTE: Always backup the files in<code> /languages/english/html_includes/your_template</code></strong></p>

That the strong tag is not respected (i.e. the statement does not show up bolded when using the default template).

In fact, I believe none of the HTML markup is respected, although it is preserved (you can see it when you do a view source; it's not like it is stripped out as a security measure or something like that).

So can any of the CSS gurus on this forum tell me how to fix this?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

18 Mar 2014, 12:47 AM
#2
rbarbour avatar

rbarbour

Totally Zenned

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

Post #2 by rbarbour

Both tags were respected in the stock default code.

Not sure if the CSS is stock or custom but <b> or <strong> are html tags and have nothing to do with CSS unless one adds a declaration to override like so

b {font-weight: normal;}
strong {font-weight: normal;}

18 Mar 2014, 12:49 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,768
Plugin Contributions:
56

Post #3 by swguy

I am speculating that there is some css that's disabling this HTML markup. But I'm open to any explanation and fix.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

18 Mar 2014, 2:30 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #4 by stevesh

I'm not seeing the issue in my stock Zencart test site. The <strong> text does display as bold.

18 Mar 2014, 3:24 AM
#5
gjh42 avatar

gjh42

Black Belt

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

Post #5 by gjh42

I would have to see the site live to be sure, but some CSS that explicitly nullifies the bolding would be the most likely cause. Is it a vanilla site, or what template is active?

18 Mar 2014, 10:49 AM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,768
Plugin Contributions:
56

Post #6 by swguy

It seems to be the

font-size: 62.5%;

within

body {

at the top of the css file. If I go over 70% it works, but not at 62.5%.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

18 Mar 2014, 9:30 PM
#7
rbarbour avatar

rbarbour

Totally Zenned

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

Post #7 by rbarbour

swguy:

It seems to be the

font-size: 62.5%;

within

body {

at the top of the css file. If I go over 70% it works, but not at 62.5%.

I cannot duplicate the same result for either the default or classic CSS, anywhere from 50-85% retains the weight for both <b> and <strong>

Do you have a link to site in question?

19 Mar 2014, 12:00 AM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #8 by mc12345678

I will say this, the other night I thought I had totally botched the css on my site, but then when I (using a windows based pc) held the ctrl key and scrolled out, things were restored to the way they were supposed to be. Different situation, I understand, but do things change if you scroll in while continuing to use/try the default template?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Mar 2014, 1:03 AM
#9
k1ra avatar

k1ra

New Zenner

Join Date:
Jul 2013
Posts:
57
Plugin Contributions:
0

Post #9 by k1ra

Ctrl+Scrolling or Ctr+'+' just zooms in the browser. Ctrl+0 will reset the browser to normal.

I was experiencing something similar on my site as far as 'bold' items not appearing bold. For me it only happened for smaller text. It had to do with the font [Arial] and the 62.5%. I got rid of the percentage and replaced it with a px value.

19 Mar 2014, 11:27 AM
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,768
Plugin Contributions:
56

Post #10 by swguy

Bizarre - now it appears that this can only be reproduced on one PC and on my other PC it looks fine. :(
I don't have a public site that shows this problem.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 Mar 2014, 11:34 AM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #11 by mc12345678

swguy:

Bizarre - now it appears that this can only be reproduced on one PC and on my other PC it looks fine. :(
I don't have a public site that shows this problem.

That is interesting, different OS's? Different browsers? Does it still happen if you host the site on the other computer and try to access from the trouble computer or vice versa?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Mar 2014, 6:27 PM
#12
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,768
Plugin Contributions:
56

Post #12 by swguy

Yeah, different OS and Browser. All old stuff though, nothing to worry about. Ugh, I wasted a lot of time on this.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.