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 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2009
    Posts
    158
    Thanks
    71
    Thanked 1 Time in 1 Post

    Changing text position

    Hi, for my site, I use a table to display some data. The format is pretty much like
    Code:
    <td><a href="#">Buy a <strong>Pen</strong><span class="tableText">from <strong>£1.00</strong></span></a></td>
    And the way it is set up with css, it displays on my site like (dots do not display, this is only used to create the space).
    Buy a Pen.............................................from £1.00
    So everything works perfectly, but now I am working with my media quiries. What I need is the tableText inside every <td> to display on a new line, so the above would be like
    Buy a Pen
    from £1.00
    Is it possible to create basically a paragraph with css, or create a new line? I cant change the html because otherwise it will change the layout to my desktop version of the website.

    Cheers

  • #2
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts
    Code:
    <table style="width: 11%">
    	<tr>
    <td><a href="#">Buy a <strong>Pen</strong></a></td>
    	</tr>
    	<tr>
    <td><span class="tableText">from <strong>£1.00</strong></span></td>
    	</tr>
    </table>
    Last edited by tempz; 07-24-2012 at 01:40 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
    •