Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Designing a responsive website
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RastaLulz" data-source="post: 326069" data-attributes="member: 1"><p>Use <a href="http://www.w3schools.com/cssref/css3_pr_mediaquery.asp" target="_blank">media queries</a> that are provided in CSS3.</p><p></p><p>Here's how you'd change the font-size when the screen is smaller than a specific width:</p><p>[CODE]@media all and (max-width: 245px)</p><p>{</p><p> .logo</p><p> {</p><p> font-size: 25px;</p><p> }</p><p>}[/CODE]</p><p></p><p>The CSS provided will change the font-size to 25px when the window is less than or equal to 245px wide.</p></blockquote><p></p>
[QUOTE="RastaLulz, post: 326069, member: 1"] Use [URL='http://www.w3schools.com/cssref/css3_pr_mediaquery.asp']media queries[/URL] that are provided in CSS3. Here's how you'd change the font-size when the screen is smaller than a specific width: [CODE]@media all and (max-width: 245px) { .logo { font-size: 25px; } }[/CODE] The CSS provided will change the font-size to 25px when the window is less than or equal to 245px wide. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Designing a responsive website
Top