1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Question about horizontal rule

Discussion in 'Programming & Webmastering' started by stinger608, Jan 7, 2013.

  1. stinger608

    stinger608 Dedicated TPU Cruncher & Folder

    Joined:
    Nov 11, 2008
    Messages:
    7,066 (3.33/day)
    Thanks Received:
    3,459
    Location:
    Wyoming
    Okay I know that the ["hr"] (without Quotation marks) will give the horizontal rule in the forum posts.

    My question is this:

    How do I resize the hr?

    How do I change the color of the hr?

    I know the HTML would look something like this:

    Code:
    <hr size=5; color=red;>
    I have tried several different codes within the TPU forums and I cannot seem to resize the hr or change the color.

    Thanks in advance..........:laugh: I know when someone helps me I am going to pretty much say "Doh" :roll:
    Crunching for Team TPU More than 25k PPD
  2. TRWOV

    TRWOV

    Joined:
    Aug 11, 2011
    Messages:
    3,482 (3.12/day)
    Thanks Received:
    2,030
    Location:
    Mexico
    I think you'd need to have access to the site's css files to do that. The hr command just shows an horizontal rule with the parameters specified in the css. Something like:

    Code:
    hr
    {
    	height: 1px;
    	border: 0;
    	color: #000000;
    	background-color: #000000;
    
    }
    Last edited: Jan 7, 2013
    stinger608 says thanks.
    Crunching for Team TPU
  3. stinger608

    stinger608 Dedicated TPU Cruncher & Folder

    Joined:
    Nov 11, 2008
    Messages:
    7,066 (3.33/day)
    Thanks Received:
    3,459
    Location:
    Wyoming

    Mmm, yea I thought there was a way that the person posting could change the color and size of the horizontal rule. Maybe I am wrong. :p
    Crunching for Team TPU More than 25k PPD
  4. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    14,788 (3.93/day)
    Thanks Received:
    11,490
    you use css to style it, possible alternative is just using css border on the container before or after where you want the hr. another option is to use css :before and :after
    stinger608 says thanks.
  5. stinger608

    stinger608 Dedicated TPU Cruncher & Folder

    Joined:
    Nov 11, 2008
    Messages:
    7,066 (3.33/day)
    Thanks Received:
    3,459
    Location:
    Wyoming
    That would work within these forums?
    Crunching for Team TPU More than 25k PPD
  6. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    14,788 (3.93/day)
    Thanks Received:
    11,490
    no, tpu forums dont allow you to post html

    if you are asking how to change the HR here on the forum, you can't.

    your best option is to create an image and insert that
    stinger608 says thanks.
  7. stinger608

    stinger608 Dedicated TPU Cruncher & Folder

    Joined:
    Nov 11, 2008
    Messages:
    7,066 (3.33/day)
    Thanks Received:
    3,459
    Location:
    Wyoming
    :laugh: Yep that is what I was asking. Thanks for clearing that up man.

    I knew how to do it in HTML with CSS and all. :toast:
    Crunching for Team TPU More than 25k PPD

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page