<hr width=50%> doesn't work???

Discussion in 'PHP' started by ronnyrtg, Sep 9, 2007.

  1. #1
    Hi, I was happily editing this php script until i tried to reduce the line width.I can't.I tried changing the color and the size but nothing changed.:confused:I am sure this block of codes is the line i am trying to edit because if i cut the '<hr width=50% color=#ff9933 noShade SIZE=1>' part, the line dissapears. Does php have got something to do with this?I'm using phpdev and editing this on localhost server.



    echo"<table cellSpacing=0 cellPadding=0 width=75% border=0 align=center>
    <tr>
    <td colSpan=3><hr width=50% color=#ff9933 noShade SIZE=1></td>
    </tr>
    <tr>
    <td vAlign=top align=left>
    <p align=left>Choose Category</td>
    <td width=20>&nbsp;</td>
    <td vAlign=top align=right>
    <p align=right>";
     
    ronnyrtg, Sep 9, 2007 IP
  2. techMonster

    techMonster Peon

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    PHP is a server side scripting language and HTML is rendered by browser on client side. So don't worry, its not because of PHP. I used your HTML code and tested it on Internet Explorer and it worked fine. Which browser are you using?
     
    techMonster, Sep 9, 2007 IP
  3. ronnyrtg

    ronnyrtg Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Really..I'm using Mozilla Firefox.Maybe it's the problem with phpdev4.3 i'm using?
     
    ronnyrtg, Sep 9, 2007 IP
  4. techMonster

    techMonster Peon

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    So, you get this problem in the integrated browser on in the firefox?
     
    techMonster, Sep 9, 2007 IP
  5. webrickco

    webrickco Active Member

    Messages:
    268
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Be carefull, many properties working in IE won't work in FF. Please check what can be done in www.w3.org for HR tag. You should follow the rules displayed there and validate your code with HTML validator, which is the only way to insure your code is working in most browsers.
     
    webrickco, Sep 10, 2007 IP