Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Responsive Website

Featured Replies

hello...

i want to know more about responsive website.

can anyone please explain how to build Responsive website??

No offence Pipe, but linking to a Wikipedia article (especially one as complicated looking yet useless as that) won't particularly help.

 

here's a quote of a post I wrote a while ago, hopefully it can serve as a small guide..

 

 

You make your HTML however you please, but in your CSS file you create what is called a media query :)


Example:

@media (max-width:1000px) {
whatever css for browsers under 1000px width
}

@media (min-width:250px) and (max-width:750px) {
whatever css for browsers between 250px and 750px
}
 

 

The "@media (max-width:1000px)" tells a browser that this only applies if the window is smaller than 1000px wide.

Wheras "@media (min-width:250px) and (max-width:750px)" is slightly more complicated until you actually think on it, all this does is applies whatever styling is within it, but only if the window is between 250px and 750px.

 

So by setting up css like this you can completely change a websites look dynamically.

 

 

Or if you prefer to only load a particular css file then you can do what I've quoted below.

 

 

or if you prefer to only load a small css file depending on the width then you could put the following into your HTML file -



Example:

<link rel="stylesheet" media="screen and (max-width: 699px)" href="small.css" />

<link rel="stylesheet" media="screen and (min-width: 700px)" href="large.css" />
 

Edited by SeikoShadow

No offence Pipe, but linking to a Wikipedia article (especially one as complicated looking yet useless as that) won't particularly help.

 

I'd prefer not to duplicate content which is explained 1000x elsewhere. For such an open and wide ranging question not asking for specifics, I believe it was a more appropriate response and was thanked.

Fair point, I just don't see the value in linking to that wikipedia article in particular, because reading it myself I can't see much of any value. A tutorial on responsive design may have been more practical. But either way that is just my opinion it could be that it helps him a lot more than my post :)

  • Author

i am thankful to all of you for your replies.

Edited by amincharoliya

I learnt RWD using a framework, but my advice which is the same advice i was given when i started to learn about RWD was to use a lightweight framework which has all the media queries but lets you do all the other CSS styling yourself and one i recommend is Skeleton.

 

I find frameworks like Bootstrap and Foundation way to big for the purpose as I like to style a website in my own style and not use styling which is used by everyone using a particular framework.

use the bootstrap framework it makes developing responsive websites really easy

I use Bootstrap 3, but it's heavily modified with almost all of the visual styling removed, enhanced grid system, what has been kept are the resets, original aspects of the grid and some of the better JavaScript functions such as models and carousel. With the modifications the framework suits my needs perfectly. Frameworks that are too stripped out slow down my development time.

 

I think it's important when starting out to avoid a framework alltogether and learn how to code responsive grids yourself and gain a deeper understanding of the fundamentals (fundamentals of CSS and HTML as a whole) Then you can use a framework to speed up the development process and modify it where needed. Learn to walk before you attempt to run :)

Like I said, if you don't fully understand HTML and CSS why are you trying to learn a complex framework like Bootstrap? Learn the fundamentals. A framework is designed to speed up the process of development, if you don't understand the underlying principles you will run into problems quickly when trying to use a framework (Especially if you plan to modify the styling)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.