Skip navigation
JohnFait
Currently Being Moderated

Can imported HTML articles use CSS media queries?

May 11, 2012 11:44 AM

Tags: #html #dps #indesign #folio #css #layout

I would like to use CSS media queries to avoid providing a portrait and landscape rendering of an html page.

 

Is this possible?

 
Replies
  • Currently Being Moderated
    May 11, 2012 11:59 AM   in reply to JohnFait

    If you only want one orientation just add the _v or _h to the file name.

     

     

     

    Bob

     
    |
    Mark as:
  • Currently Being Moderated
    May 11, 2012 1:39 PM   in reply to JohnFait

    I misunderstood. Why would you need two files.

     

     

     

    Have you experimented with min-width and max-width settings for the container div?

     

     

     

    Bob

     
    |
    Mark as:
  • Currently Being Moderated
    May 11, 2012 1:51 PM   in reply to JohnFait

    It would be very nice if DPS could support the media queries soon. It works just fine in iOS Safari, but to get folio rotation from a single HTML file you'll have to use much clunkier Javascript.

     

    http://lafaucon.com/test/css-rotation.html

    http://lafaucon.com/test/js-rotation.html

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points