Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,255
Total Threads: 81,223
Total Posts: 566,959
There are 133 users currently browsing (tf).
  Our Partners:
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

@media for mobile

Thread title: @media for mobile
    Thread tools Search this thread Display Modes  
09-05-2014, 11:19 PM
insub2 is offline insub2
Status: Member
Join date: Jun 2007
Posts: 136
iTrader: 1 / 100%

insub2 is on a distinguished road

Send a message via AIM to insub2

  Old  @media for mobile

i'm getting stuck on media queries.

i made a test page:

but my phone says it's with is 980px.

what's going on?

Reply With Quote
04-17-2015, 09:01 PM
Sw1tch is offline Sw1tch
Sw1tch's Avatar
Status: I'm new around here
Join date: Nov 2006
Location: Austin, TX
Expertise: Front end development
Software: Sublime Text 2, Photoshop
Posts: 3
iTrader: 0 / 0%

Sw1tch is on a distinguished road


Your code translates to:

Larger than 320px, red.
Larger than 480px, pink.
Exactly 980px, gold.

I doubt your phone or any other device is going to render at exactly 980px wide.

Here is a CodePen that shows gold when greater than 980px.

Reply With Quote

Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed