Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder kyllle's Avatar
    Join Date
    Mar 2008
    Posts
    334
    Thanks
    85
    Thanked 2 Times in 2 Posts

    Simple question that I dont know the answer to.

    I want to use css to replace the current html <br>'s but Im not sure how I can achieve this?

    20:00<br />
    DON GIOVANNI (1787)<br />
    Estates Theatre<br />
    <br />
    Wolfgang Amadeus Mozart (1756-1791)<br />
    Director: V. Kašlík, J. Nekvasil<br />
    Stage design: J. Svoboda

    I know this must be very simple to achieve but Iv struck a bit of a brain block, thanks for your help!!

    Kyle

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    like
    Code:
    div.mydiv br{
    display:none;
    }
    Code:
    <div class="mydiv">
    20:00<br />
    DON GIOVANNI (1787)<br />
    Estates Theatre<br />
    <br />
    Wolfgang Amadeus Mozart (1756-1791)<br />
    Director: V. Kašlík, J. Nekvasil<br />
    Stage design: J. Svoboda
    
    </div>
    ?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    kyllle (03-04-2009)

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    837
    Thanks
    11
    Thanked 79 Times in 77 Posts
    Just write it using the "pre" tags:
    Code:
    <pre>
    20:00
    DON GIOVANNI (1787)
    Estates Theatre
    
    Wolfgang Amadeus Mozart (1756-1791)
    Director: V. Kašlík, J. Nekvasil
    Stage design: J. Svoboda
    </pre>
    Then style the "pre" tags as you want.
    Last edited by Major Payne; 03-04-2009 at 10:43 AM.
    ☠ ☠RON☠ ☠

  • Users who have thanked Major Payne for this post:

    kyllle (03-26-2009)

  • #4
    Regular Coder kyllle's Avatar
    Join Date
    Mar 2008
    Posts
    334
    Thanks
    85
    Thanked 2 Times in 2 Posts
    cheers the pre works a treat!!!!

  • #5
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    837
    Thanks
    11
    Thanked 79 Times in 77 Posts
    Glad it worked the way you wanted.
    ☠ ☠RON☠ ☠

  • Users who have thanked Major Payne for this post:

    kyllle (03-26-2009)


  •  

    Posting Permissions

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