Results 1 to 10 of 10
  1. #1

    help question <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.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default 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.

  3. #3

    Default 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.

  4. #4

    Default 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.

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default 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.

  6. #6

    Default 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.
    Last edited by fepb; 30 Nov 2007 at 11:33 PM.

  7. #7
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default 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

  8. #8

    Default 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.

  9. #9
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

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

    change this in your css:
    HR {
    height: 1px;
    margin-top: 0.5em;
    }
    Quote Originally Posted by 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

  10. #10
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default 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?)
    HTML Code:
    <div class="styled-hr"><hr></div>
    and in the CSS
    HTML Code:
    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.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 12 Apr 2011, 07:53 PM
  2. HTML tags in Define Pages Editor
    By WeFoundEm in forum General Questions
    Replies: 2
    Last Post: 29 Nov 2010, 05:24 AM
  3. After Upgrade define pages editor does not work.
    By ADE Cyber Emporium in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 20 Oct 2010, 02:57 PM
  4. Replies: 2
    Last Post: 10 Aug 2008, 10:04 PM
  5. Define pages HTMLarea editor won't work with my language
    By Nitrok in forum Basic Configuration
    Replies: 1
    Last Post: 14 May 2008, 06:29 PM

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