Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: HTML5 responsive tables alt?

  1. #1
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Question HTML5 responsive tables alt?

    I'm swapping a site for a friend from HTML4 to a responsive HTML5. On one of his pages the entire thing is tables.

    For this page, would it be better to leave it as a table layout or a grid style page?

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Semantically and responsively, it would be better to recode and get away from tables for anything other than statistical data.

    For all the logos at the bottom, maybe you could use this as a starting point http://fofwebdesign.co.uk/template/_...id-img-rwd.htm
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. The Following User Says Thank You to Beverleyh For This Useful Post:

    mlegg (03-14-2015)

  4. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    Click image for larger version. 

Name:	123.JPG 
Views:	166 
Size:	84.3 KB 
ID:	5630

    Row 1 is going to be split into a left, middle and right div
    Row 2 is going to be done with a grid, like your link above
    Row 3 is is going to be split into a left and right div
    everything below will be done with a grid, like your link above

  5. #4
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    Quote Originally Posted by Beverleyh View Post
    Semantically and responsively, it would be better to recode and get away from tables for anything other than statistical data.

    For all the logos at the bottom, maybe you could use this as a starting point http://fofwebdesign.co.uk/template/_...id-img-rwd.htm
    Is there a way to turn the images into hyperlinks (pop up window, modal window, whatever) so I can get it to open a window for the reference letter they are linked to?

  6. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Try wrapping a standard hyperlink anchor tag around the div that holds each img
    Code:
    <a href="my-page.htm"><div class="img img-01"></div></a>
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  7. #6
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there mlegg,

    here is a slightly different example to Beverley's that can be seen in the attachment.

    Edit: modified the code and replaced the original attachment.

    coothead
    Attached Files Attached Files
    Last edited by coothead; 03-28-2015 at 07:03 PM. Reason: modification of the original code

  8. The Following User Says Thank You to coothead For This Useful Post:

    BorderTerroir (03-30-2015)

  9. #7
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    Quote Originally Posted by Beverleyh View Post
    Try wrapping a standard hyperlink anchor tag around the div that holds each img
    Code:
    <a href="my-page.htm"><div class="img img-01"></div></a>
    That works. test page
    The Blue Water logo is originally 150 x 76. In the test page it shows a portion of the logo, not the whole thing scaled to fit.
    Here is the original logo. Click image for larger version. 

Name:	bluewater.jpg 
Views:	133 
Size:	4.5 KB 
ID:	5653
    also, all of the logos are different sizes too.

  10. #8
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there mlegg,

    my example, as it uses the "img element" rather than
    the "background-image" does not have that problem.

    coothead

  11. #9
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Look for background-size:cover; in the CSS and try changing it to background-size:contain;
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  12. The Following User Says Thank You to Beverleyh For This Useful Post:

    mlegg (03-28-2015)

  13. #10
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default

    What a great script I've tried a test page and now I'll implement it on the whole site.

    http://www.castlefordheritagetrust.o...Footbridge.php

    Many thanks

    John

Similar Threads

  1. Responsive CSS
    By eroly in forum CSS
    Replies: 3
    Last Post: 09-30-2014, 02:38 PM
  2. HTML5 Responsive Web design
    By letom in forum HTML
    Replies: 2
    Last Post: 03-04-2014, 06:51 PM
  3. UTF-8 with HTML5
    By techno_race in forum Coding tips & tutorials threads
    Replies: 16
    Last Post: 06-23-2012, 06:03 PM
  4. Replies: 1
    Last Post: 03-09-2007, 03:44 PM
  5. Replies: 1
    Last Post: 07-30-2005, 08:57 PM

Bookmarks

Posting Permissions

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