CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 20th, 2013, 12:44 PM
rdbrotherton rdbrotherton is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 22 rdbrotherton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 20 m
Reputation Power: 0
Media Query for Responsive CSS

I'm trying to edit a website I made last year to incorporate responsive design. Having read some articles from various sources, it seems one of the more common ways of doing this is using a @Media query tag in the CSS.

I've had some success to this point, the website reduces to how I want it to display if you reduce a browser window on your PC to 480px. However, when you view it on a smartphone it does not look the same. I assume I'm missing something simple in the code for smartphones but I'm stuck.

Links below:

www.designercurtains.biz/test/index.htm
www.designercurtains.biz/test/descurt.css

Any help greatly appreciated as always!

Reply With Quote
  #2  
Old January 20th, 2013, 04:21 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,835 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 1 Day 22 h 10 m 33 sec
Reputation Power: 4192
__________________
Spreading knowledge, one newbie at a time. I'm available for hire at Dynamic Site Solutions.

Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

Remember people spend most of their time on other people's sites (so don't violate web design conventions).

Reply With Quote
  #3  
Old January 21st, 2013, 11:28 AM
rdbrotherton rdbrotherton is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 22 rdbrotherton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 20 m
Reputation Power: 0
Thanks Kravvitz for your reply. I actually did include the viewport code previously but when it was displaying differently on different devices I wondered if the initial scale rule had anything to do with it and removed the code to see what happened. I then promptly forgot about removing it when this error started lol.

I think I'm struggling to understand the Media Query fully.

I've now set device width to 320px, initial scale=1 and my media query is set to activate at 320px. All this works lovely on my iPhone, and bar a few tweaks looks generally how I'd want it to.

My struggle now is to get it to look like that on all/most smartphone devices.

What's the best way of achieving this? Making more media querys for more sizes? i.e another query at 480px?

I'm currently resizing divs to 320px for the media query. Is it better to use % for divs when using this rule?

Its a lovely and interesting feature to try and learn!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Media Query for Responsive CSS

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap