Forums / General Questions / <HR> tags will not work in Define Pages Editor

<HR> tags will not work in Define Pages Editor

Locked

Views: 1,566

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
30 Nov 2007, 9:32 PM
#1
fepb avatar

fepb

New Zenner

Join Date:
Mar 2007
Posts:
75
Plugin Contributions:
0

<HR> tags will not work in Define Pages Editor

Hi Zen Cart users:

I tried to insert a <HR> (horizontal rule) into my main page using Define Pages Editor and it doesn't seem to work.

I used the following:

<hr size="4" color="red" width="40%" align="center">

While the line does appear on my main page and is centered, neither the size nor color is as I wanted. No matter how I change the size and color, it is the same thin blue line. I can't tell if the width is as I specified.

I tested this same code on a non-Zen Cart page, and it is fine:

http://frangadesigns.com/hr.html

vs.

http://frangadesigns.com (down toward the middle of the page)

Does anyone know why this is happening? Does Zen Cart not support <HR> tags?

Thanks in advance for your help.

30 Nov 2007, 9:34 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,685
Plugin Contributions:
0

Re: <HR> tags will not work in Define Pages Editor

Try using <hr /> and styling it using your CSS stylesheet.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

30 Nov 2007, 9:53 PM
#3
fepb avatar

fepb

New Zenner

Join Date:
Mar 2007
Posts:
75
Plugin Contributions:
0

Re: <HR> tags will not work in Define Pages Editor

Thanks for your response, Kim. I'm still learning about CSS so I'm not sure if I did this right:

in my CSS:

hr {
width: 40%;
color: #FF0000;
height: 2px;
}

And when I inserted <hr /> in my main page, it was the same thin blue line, but it went all the way across the page.

So I made it in my define pages editor:

<hr width="40%" align="center" />

And it's back to the shorter line, but still the same thinness and blue. Did I do something wrong?

Thanks again.

30 Nov 2007, 9:58 PM
#4
fepb avatar

fepb

New Zenner

Join Date:
Mar 2007
Posts:
75
Plugin Contributions:
0

Re: <HR> tags will not work in Define Pages Editor

Oh, and I just checked it in IE6, and found the line a magenta color (though the rgb code I used is supposed to be red), but it does look like it may be 2 px. But in Firefox, Sea Monkey & Opera, it's still the thin, blue line.

Thanks.

30 Nov 2007, 10:16 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,685
Plugin Contributions:
0

Re: <HR> tags will not work in Define Pages Editor

Don't add polls that have nothing to do with anything.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

30 Nov 2007, 10:30 PM
#6
fepb avatar

fepb

New Zenner

Join Date:
Mar 2007
Posts:
75
Plugin Contributions:
0

Re: <HR> tags will not work in Define Pages Editor

I actually added that poll because I wanted to know what percentage of people use each respective search engine. I've found that MSN and Yahoo searches put us on page 1 of their search results with quite a few of our keywords, but Google doesn't - not even in the first few pages. I've been trying to figure out how to optimize my site for the various search engines and thought it would be helpful to know what the preference breakdown is so I can know which search engines to concentrate my efforts on more.

I didn't think this poll would be inappropriate as the Zen Cart forum contains many topics about search engines.

30 Nov 2007, 10:38 PM
#7
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: <HR> tags will not work in Define Pages Editor

Your topic and your poll are not related at all. You should have put it in another topic, and in another room.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

30 Nov 2007, 10:45 PM
#8
fepb avatar

fepb

New Zenner

Join Date:
Mar 2007
Posts:
75
Plugin Contributions:
0

Re: <HR> tags will not work in Define Pages Editor

Well I apologize for my error and any inconvenience this may have caused you. I thought I was just saving time and space by condensing and putting the poll with my thread. I didn't think it would be against the rules to put a poll not related to my question on the same thread.

30 Nov 2007, 11:03 PM
#9
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: <HR> tags will not work in Define Pages Editor

change this in your css:
HR {
height: 1px;
margin-top: 0.5em;
}

fepb:

"I thought I was just saving time and space by condensing and putting the poll with my thread. I didn't think it would be against the rules to put a poll not related to my question on the same thread."

Not really, just that no one would know the poll is about search engine, because all we see when we look at the topic is the title "<HR> tags will not work in Define Pages Editor". So t makes the poll kinda pointless, doesnt it?

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

1 Dec 2007, 10:59 AM
#10
banswidthjunkie avatar

banswidthjunkie

Zen Follower

Join Date:
Nov 2007
Posts:
167
Plugin Contributions:
1

Re: <HR> tags will not work in Define Pages Editor

It is impossible to properly style an <hr /> consistently in CSS. First you need to wrap it in a div and then style the div (stupid isn't it?)

<div class="styled-hr"><hr></div>
``` and in the CSS
```html
div.styled-hr {
	height: 1px;
	margin:5px;
	border-bottom: 1px solid #6f6956;
	}

for instance. Firefox is fine, but IE insists on some kind of margin (or padding) around a naked <hr /> element.

My ZenCart Mods: Define Pages Generator | Fual Slimbox (Lightbox)
A site I did for a mate: http://richard-moon.co.uk/