Responsive Web Designs - The
Best Advice You Could Ever Get About
Author Name: Punit Korat
Address:4030, Central
Bazzar,
Varachha Road, Surat,
Gujarat-395006.
Mobile No: 092770-77088
Varachha Road, Surat,
Gujarat-395006.
Mobile No: 092770-77088
Whether
you're a Beginner or a seasoned web professional, making reactive designs may
be perplexing at first, mainly due to the radical change in thinking that's
required. As time goes on, responsive website design is drifting away in your
pool of passing fads and rapidly going into the kingdom of regular practice. In
fact, the size of this paradigm shift feels as basic as the transition from
table based layouts to CSS. In other words, this is a very distinct way of
designing sites and it reflects the future.
What Is
responsive web layout?
Let's just
get right Into it: Believe it or not, the Treehouse site that you are reading
this post on is really a responsive design! To see it in action, open this
informative article on a desktop and gradually create the browser thinner and
wider. responsive web design basics You
ought to observe the layout magically adjust itself to more comfortably fit the
new width of the browser, even in the event that you create the page as skinny
as the resolution of a mobile phone. Here are some screenshots of what the
Think Vitamin design looks like at different screen resolutions:
It is hard
to talk About responsive design without mentioning its founder, Ethan Marcotte.
In case you haven't read his seminal post about responsive web design, I highly
suggest that you check it out (seriously, this is required reading). From the
article, Ethan discusses all the key notions that form responsive web design;
and that is what responsive layout is, technically. It's not a single piece of
technology, but rather, a set of techniques and ideas that form a complete.
This is one of the main sources of confusion, and in a minute we'll break
things down and take a look at each part.
So, what is
responsive Design precisely? In fact, a better question to ask might be, what
issue does responsive web design solve? Well, as you may have noticed,
computers aren't the only piece of hardware with an internet browser anymore.
The shifting
landscape Of browsers meant that consumers expectations also changed; people
expected to be able to browse the internet on their phones just as readily as
they surf the web on a desktop computer. Thus, in reaction to this (if you will
excuse the pun) the web design community started creating mobile versions of
the sites. Actually, this wasn't really the way forward, but in the time it
looked like a fair idea.
Technology
never stops Marching forward, so not long after the telephone hardware market
had been altered, other form factors surged in popularity. Along with phones
and personal computers, devices like touchscreen tablets and small laptop
computers (netbooks, if you want the term) began appearing everywhere.
It's not
just small Screens, either. Large, high-resolution displays have started to
become far more prevalent than they used to be, and it would be a waste for
designers not to make the most of the.
In summary,
the Spectrum of screen sizes and resolutions will be expanding daily, and
creating another version of a site which targets each individual device isn't a
sensible way forward.
Formerly, I
Mentioned that responsive web design isn't a single bit of engineering, but
instead, a selection of techniques and ideas. Now that we've got a better idea
of the problem space we're addressing, let us take a look at every area of the
alternative.
Fluid Grids
The primary
key idea Behind responsive design is the usage of what's called a fluid grid.
Recently, developing a'liquid design' that expands with the webpage has not
been quite as popular as creating fixed width layouts; page designs that are a
fixed number of pixels around, and then based on the page. However, when one
considers the massive number of display resolutions present in today's market,
the benefit of liquid designs is too great to ignore.
Fluid grids
move a few Steps beyond the standard liquid layout. Rather than designing a
design based on rigid pixels or random percentage worth, a fluid grid is much
more carefully designed concerning proportions. In this manner, when a layout
is squeezed onto a tiny cellular device or stretched over a massive display,
all the components in the design will resize their widths in relation to
another.
In order to
compute The proportions for each page component, you have to split the goal
element by its context. Currently, the best approach to do this is to first create
a high fidelity mockup at a pixel based imaged editor, like Photoshop. Together
with your high fidelity mockup in hand, you can quantify a page element and
divide it by the entire width of the page. For example, if your design is a
typical size like 960 pixels across, then this would be
your"container" value. After that, let us say that our target element
is some arbitrary value, like 300 pixels wide. If we multiply the result by
100, we get the percentage value of 31.25% which we could employ to the target
component.
If your
values do not Work out so neatly, and you also get some floating point value
with several numbers after the decimal, do not round the value! We humans may
enjoy nice neat numbers and making our code look pretty, but your computer (and
the last appearance of your layout ) will gain from the seemingly excessive
mathematical precision.
Fluid grids
are an extremely Important part of making a responsive layout, but they could
only take us so far. When the width of the browser becomes too narrow, the
design can begin to severely break down. By way of example, a complex
three-column layout isn't going to function really nicely on a small cell
phone. Luckily, responsive design has taken care of this problem by utilizing
media queries.
Media
Queries
The second
part of Responsive layout is CSS3 media queries, which currently enjoy decent
support across many modern browsers. If you're unfamiliar with CSS3 media
queries, they essentially permit you to collect data about the website visitor and
use it to conditionally apply CSS styles. For our purposes, we're mostly
interested in the min-width media feature, which allows us to apply specific
CSS styles in the event the browser window drops below a specific width which
we can specify. When we wanted to apply some styling to cellular phones, our
press query might look something like the following.
@media
Display and (min-width: 480px)
.content
.social_icons
Screen: none
// and so
forth...
Employing a
series of Media queries similar to this, we can work our way upward towards
larger resolutions.
Again, these
are only Recommended, and should function as a beginning point. In an perfect
world, you'd adjust your layout to perfectly match every device width, but
often times you need to pick and choose where you invest your efforts. From a
more practical standpoint, the settlements that a layout targets will be based
on the settlements of the folks using that design, time and budget limitations,
highly contextual scenarios, and so on. Targeting more settlements will take
more time, and assuming you're not an immortal being with infinite time, this
effort should be spent manually.
Again, to
see that a Reactive design in activity, simply open up this article on a
desktop and gradually resize the browser to make it skinnier. You need to see
all the page elements correcting themselves automagically to fit the new width,
moving all the way down to the size of a cell browser.
Resources
Responsive
web design Is about a year old today, and there are plenty of resources that
can help you learn more about it. Here are some links:
Hopefully
this Report Helped, but if you're still feeling confused regarding responsive
design, don't be afraid to leave a query or remark. If you are already
utilizing responsive web design on your website or web application, talk about
the link so we can see!
Bonus
We're
Beginning to add Complimentary Youtube videos on responsive web design so if
you're interested in learning more, you can subscribe to our station here: http://trhou.se/subscribe-treehouse-yt
Beginner's
Guide to Responsive Web Design
Nick Pettit
8 minutes read
Whether you
are a Beginner or a seasoned web professional, creating responsive designs
could be confusing at first, mainly because of the radical change in thinking
that's required. As time continues, responsive web design is drifting away from
your pool of passing fads and rapidly going into the realm of standard
practice. In fact, the size of this paradigm change feels as fundamental as the
transition from table based layouts to CSS. In other words, this is a very
distinct way of designing sites and it represents the future.
Free trial
on Treehouse: Would you need to learn more about responsive web design?
What Is
responsive web design?
Let us just
get right To it: Believe it or not, the Treehouse site that you are reading
this post on is actually a responsive design! To view it in action, start this
article on a desktop and slowly make the browser thinner and wider. You ought
to observe the design adjust itself to more comfortably fit the new width of
the browser, even in the event that you create the page as skinny as the
resolution of a mobile phone. Here are some screenshots of what the Think
Vitamin design looks like at different screen resolutions:
It is hard
to speak About responsive layout without mentioning its founder, Ethan
Marcotte. If you haven't read his seminal article about responsive site design,
I highly recommend you check it out (seriously, this is required reading). In
the article, Ethan discusses each of the key ideas that form responsive web
design; and that's really what responsive layout is, technically. It is not a
single piece of technologies, but instead, a set of ideas and techniques that
form a whole. This is only one of the main sources of confusion, and in a
moment we will break things down and have a look at each part.
So, What's
responsive Design exactly? Actually, a much better question to ask might be,
what issue does responsive web design solve? Well, since you may have
discovered, computers aren't the sole piece of hardware with a web browser . I
could get myself in trouble by saying this, but the iPhone was among the first
mobile devices to incorporate a very fantastic web browser, and it really put
the spotlight on updating the encounter of the mobile web. A number of other
apparatus followed suit and, seemingly overnight, the face of the mobile web
had changed.
The shifting
landscape Of browsers meant that users expectations also shifted; folks
expected to be able to browse the internet on their phones just as easily as
they surf the web on a desktop computer. So, in response to the (if you will
excuse the pun) the web design community began producing mobile versions of
their sites. Actually, this was not actually the way forwards, but at the time
it looked like a fair idea.
Technology
never stops Marching forward, so not long after the phone hardware marketplace
was revolutionized, other form factors surged in popularity. In addition to
phones and personal computers, devices such as touchscreen tablet computers and
little laptop computers (netbooks, if you want the expression ) began appearing
everywhere.
It's not
just small Screens, either. Large, high-resolution displays are starting to
become much more common than they used to be, and it might be a waste for web
designers not to take advantage of the.
In summary,
the Spectrum of display sizes and resolutions is expanding daily, and
developing another version of a site that targets every individual device is
not a practical way forward. This is the issue that responsive web design
addresses head on.
Previously,
I Stated that reactive web design is not a single bit of engineering, but
instead, a selection of techniques and ideas. Now that we've got a better idea
of the problem space we are addressing, let us look at every area of the
alternative.
The primary
key idea Behind responsive layout is the use of what is known as a fluid grid.
In recent memory, developing a'liquid design' that expands with the webpage has
not been quite as popular as creating fixed width designs; webpage designs that
are a fixed number of pixels around, then centered on the page. However, when
one considers the huge number of screen resolutions present in the market
today, the benefit of liquid designs is too great to ignore.
Fluid grids
go a few Steps past the traditional liquid layout. Rather than designing a
design based on rigid pixels or random percentage worth, a fluid grid is more
closely designed concerning proportions. This way, when a design is squeezed
onto a small mobile device or stretched across a huge screen, each one the
components in the layout will resize their widths in relation to another.
In order to
calculate The proportions for each page component, you must split the goal
element by its own context. Presently, the best approach to do so is to create
a high fidelity mockup at a pixel based imaged editor, like Photoshop. With
your high fidelity mockup in hand, you can measure a page element and split it
by the entire width of the webpage. By way of instance, if your layout is a
typical size like 960 pixels around, then this could be
your"container" value. Then, let's say our target element is some
arbitrary value, such as 300 pixels wide. If we multiply the result by 100, we
get the percentage value of 31.25% which we could employ to the target
component.
If your
values don't Work out so neatly, and you get some floating point value with
many numbers after the decimal, do not round the value! We humans may enjoy
nice neat numbers and creating our code look pretty, but your personal computer
(and the final appearance of your design) will gain from the seemingly excess
mathematical precision.
Fluid grids
are a very Important part of creating a responsive layout, but they can only
take us so far. When the diameter of the browser becomes too narrow, the layout
can start to severely break down. For example, a intricate three-column design
is not likely to work very well on a tiny mobile phone. Luckily, responsive
design has taken care of this issue by using media queries.
The second
part of Reactive design is CSS3 media queries, which now enjoy adequate support
across many modern browsers. If you're not familiar with CSS3 media inquiries,
they basically permit you to gather data about the site visitor and use it to
conditionally apply CSS styles. For our purposes, we're mostly interested in
the min-width media attribute, which allows us to apply specific CSS styles in
the event the browser window drops below a specific width which we can specify.
If we wanted to employ some styling to cellular phones, our media query might
look something like the next.
@media
Display and (min-width: 480px)
.content
.social_icons
Screen: none
// and so
forth...
Employing a
series of Media queries similar to this, we could work our way upward towards
larger resolutions. Recommended, and should function as a starting point. In an
ideal world, you would adjust your layout to perfectly match every apparatus
width, but often times you have to pick and choose where you spend your
efforts. From a more practical standpoint, the resolutions that a design aims
will be based on the resolutions of the folks using that layout, budget and
time limitations, highly contextual scenarios, etc. In conclusion, when
deciding what resolutions to target, you should use your judgement. Targeting
more resolutions will require more time, and assuming you are not an immortal
being with unlimited time, this effort should be spent carefully.
Reactive
design in action, just open this article up on a desktop browser and slowly
resize the browser to make it skinnier. You need to see all the page elements
correcting themselves automagically to match the new width, going all of the
way down to the size of a mobile browser.
Resources
Responsive
web design Is about a year old today, and there are plenty of resources which
could help you learn more about it. Here are some links:
Hopefully
this article Helped, but if you are still feeling confused about responsive
layout, do not be reluctant to leave a question or comment. If you are already
using responsive web design on your site or web application, share the link so
that we can see!
For more
information visit: https://www.webdigify.com/
Responsive Web Designs - The Best Advice You Could Ever Get About
Reviewed by Unknown
on
September 15, 2018
Rating:
No comments: