Results 1 to 2 of 2

Thread: div border troubles

  1. #1
    Join Date
    Jun 2010
    Posts
    243

    Question div border troubles

    I am trying to put a border on the left and right side of this div. for some reason, it won't take it though:

    HTML Code:
    <div style="border-left:#CCC; border-right:#CCC; width:50%">
    <h3 style="font-weight:bold"><img src="Images/image_icon.png" width="85" height="70" /> Title Here</h3>
    <p>Blah blah blah...</p>
    </div>

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    You need to code the width and type as well as the color, like:-
    Code:
    <div style="border-left: 2px solid #CCC; border-right:2px solid #CCC; width:50%">
    <h3 style="font-weight:bold"><img src="Images/image_icon.png" width="85" height="70" /> Title Here</h3>
    <p>Blah blah blah...</p>
    </div>
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. 1024x768 - Troubles
    By rpadovani in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 02 Sep 2009, 10:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •