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.

Which approach is best to create a responsive html page?

Featured Replies

I have designed 3 versions of a web page - desktop, tablet and mobile.

Content is same but layout is different.

Which approach is best to convert the page to responsive html:

a) Separate html files

B) Separate CSS files

c) Single CSS file


You can view jpegs of the 3 versions here:

Desktop:


Tablet:


Mobile:



I am new to responsive web designing, please give the best advice.


NOTE:- Mobile version's navigation (top-right) is different from Tablet and Desktop version.


Thanks in advance.

google media queries

 

after u get hold of media queries u can use twitter bootstrap

This is the way to go in my opinion.

I use Bootstrap for mine too lots of features already coded for you like form fields, glyphs, navbars and pagination.

 

Saves a lot of headache

I'm not a big fan of CSS libraries, I recently made my site http://www.pixelcoder.co.uk/ responsive (my first responsive site) and looked into CSS libraries like bootstrap before doing so.

I found the quickest way of doing it was to use media queries and edit accordingly.

 

It didn't take too long to make a mobile version and seems to work okie.

Edited by pixelcoder

Oh please don't use bootstrap for a simple page like this.

 

I agree, you should learn the very basics of how to create a grid, media querys, css box model. Once you understand those creating basic layouts is a trivial task. Things like Bootstrap are there to speed up the development process, you should have some understanding of how it works if you are using it - especially if creating a live site for a client.

Fair enough you can use frameworks to play around with but why try to run before you can walk?

I agree, you should learn the very basics of how to create a grid, media querys, css box model. Once you understand those creating basic layouts is a trivial task. Things like Bootstrap are there to speed up the development process, you should have some understanding of how it works if you are using it - especially if creating a live site for a client.

Fair enough you can use frameworks to play around with but why try to run before you can walk?

 

well i exactly made that point if u read my post above ;)

 

using bootstrap is matter of choice to speed up development.. not a way to learn responsive webdesign

I just expanded on that point, knowing how css media querys work is all well and good but if you don't also know how the css box model works you're gonna quickly run into problems.

 

For me Bootstrap has too many styles that actually slowed down development. I removed the vast majority of these and now development is a lot faster. But for prototyping things that don't require a bespoke front end the standard Bootstrap is very fast.

Option b and c is really up to you. You can have media queries in your stylesheet links and have different stylesheets if you wish. Or you can have all your mediaqueries in a single stylesheet (might give a faster pageload because of lesser requests)

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.