# Converting a fixed layout for seamless

109

If all users to access our site with browsers whose windows were all the same size would be an almost perfect world and the developer could have a perfect control of your layout.

But we know that our reality is quite different, Long ago I gave up to the developer to “cheat” and create websites with a standard size such as 640, 800, 1024 pixels. But doing so has always been an illusion, and I say this even before we think of mobile devices.

Responsive layout – Improved Progressive

The big secret is to make fluid layouts, setting aside – not entirely – the pixel unit. In its place we work with proportional units (percentages).

An important note a layout to be considered responsive besides having a fluid layout you must use images and flexible media and also the media queries .

## Converting into practice

Take a look at the example of the layout below. We use it as a reference for converting to fluid.

## Formula fluid layout

To convert a layout that is based on pixel and is proportional fluid use the following formula:
Goal / Context = Result

## Applying the formula

Let’s take a look at how we can apply the formula in our sample layout.

We will base our proportions in a size, in this case 960 pixels wide. Our reference layout has this size. It would be the maximum size of our layout. Everything within it is proportional.

If we look at our layout realized that the header and footer occupy the entire width of the layout, i.e., they extend the full width of the layout. It soon becomes very easy to see the result of the application of our formula. See:

960/960 = 100% (1)

The columns of the left and right are 240 pixels wide within 960 Total pixels. For us to get a proportionate measure we use the same formula, just changing the values. See:

240/960 = 25%

The calculation is quite logical. We realize that the columns extend a quarter of the width of our page, just the proportional value is 25%.

Now we will convert the center column of the page. In the example we take into consideration that it is positioned without being floated. Its positioning is done with banks, then your CSS would be:

#main {margin: 10px 0 250px 250px}

The 250px values ​​on the left and right are used to match the center speaker in the middle of the two columns. Now we have to convert these values ​​to share. The formula with its result is:

250/960 = 26.0416667%

The CSS rule looks like this:

#main {margin: 10px 0% 26.0416667 26.0416667%}

In the above examples it seems that we will always divide the total amount of the page. But often the context changes. For example look at our layout columns of 220 pixels.

In this context the division would not be 220/960. The result would be 22.9166667% of its parent element (element with 460px) By doing this we are telling the browser to render about 23% 460.

Note that now we want to let the elements in proportion to the central element that has 460 pixels, so the correct formula would be:

220/460 = 47.826087%

In the latter fixed conversion fluid sample to note that we use the layout of the context element in our formula, the context here is the element 460 pixel where the other two elements 220 pixels were within.

See the layout with the measures as a percentage.

## Conclusion

In this quick tutorial I wanted to show an example of how to convert a fixed layout fluid. The secret is the formula target / context. This is what I need to have a responsive layout? no. This is only the first pillar to have a responsive layout quality.

109 Responses
1. F*ckin’ tremendous issues here. I am very happy to look your post. Thank you so much and i am looking ahead to touch you. Will you please drop me a e-mail?

2. I’m not that much of a online reader to be honest but your sites really nice, keep it up! I’ll go ahead and bookmark your site to come back down the road. Cheers

3. Converting a fixed layout for seamless – Karachi | Mobile
App, WordPress, Magento, Ecommerce Developer
Howdy! Quick question that’s totally off topic.
Do you know how to make your site mobile friendly? My blog looks
weird when viewing from my iphone. I’m trying to find a theme or plugin that might be able to fix this problem.
If you have any suggestions, please share. Thank you!

4. Converting a fixed layout for seamless – Karachi | Mobile App, WordPress, Magento, Ecommerce Developer

5. Converting a fixed layout for seamless – Karachi | Mobile App, WordPress, Magento, Ecommerce Developer

6. Converting a fixed layout for seamless – Karachi | Mobile App, WordPress, Magento, Ecommerce Developer

7. Converting a fixed layout for seamless – Karachi | Mobile App, WordPress,
Magento, Ecommerce Developer
Hello colleagues, nice post and good arguments commented at this place, I am genuinely enjoying by these.

8. EverettInece

Hello, thank you in regard to tidings! cialis vs viagra http://viapwronline.com I repost in Facebook.
cheap viagra

9. My husband and i ended up being very happy when Raymond managed to complete his analysis through the ideas he acquired from your very own web page. It’s not at all simplistic just to be giving for free thoughts which people may have been trying to sell. And we discover we have got the website owner to give thanks to for that. The specific explanations you made, the simple site navigation, the friendships you aid to create – it is most overwhelming, and it’s aiding our son and our family recognize that this topic is interesting, which is unbelievably pressing. Thank you for all the pieces!

10. Maria Giudica

This is a very signal post. Thanks quest of posting this.

What do you think close by my website: servicii web design

11. I as well as my guys were reviewing the great points located on your website and then suddenly came up with a horrible suspicion I never thanked the web blog owner for those strategies. My ladies are actually as a consequence stimulated to read them and already have very much been taking advantage of them. Many thanks for turning out to be quite helpful as well as for obtaining some terrific things millions of individuals are really wanting to discover. Our honest apologies for not expressing appreciation to sooner.

12. PeterPaw

Hello, attention you http://cialisxtl.com looking in compensation information! free cialis medication for providers
viagra coupons from pfizer

13. Some things are inevitable. This proverb specifically refers to a couple that seems destined to marry, even if it takes a long time.
There is no point in wasting emotion over something that has already happened and can’t be changed.

14. This is another proverb that means exactly what it says. Don’t live with regret because you thought the opportunity would come again.
A person who does not settle in one place cannot gather possessions, wealth, status, or commitments

15. Eggs are extremely delicate, and not all of them go on to become chickens. Don’t act on the assumption that you have something before actually do.
If you perceive criticism in something that was not directed at you, you shouldn’t take offense because you deserve it.

16. Some things are inevitable. This proverb specifically refers to a couple that seems destined to marry, even if it takes a long time.
There is no point in wasting emotion over something that has already happened and can’t be changed.

17. It’s important to look back at your roots and show gratitude to those who came before you. It is because of them that you are where you are today.
Health is one of the most valuable possessions. Treasure and protect it.

18. I happen to be commenting to make you understand of the outstanding encounter my cousin’s princess found viewing your site. She mastered a good number of issues, not to mention how it is like to possess a marvelous giving mood to have men and women smoothly gain knowledge of several problematic issues. You truly surpassed her expected results. Thank you for giving the precious, trustworthy, explanatory and also cool thoughts on your topic to Tanya.

19. Ӏ еvery timе emailed tһis webpage post paցe to
all my contacts, Ьecause if lіke tо read it afterward mʏ contacts will too.

20. I simply needed to appreciate you once more. I am not sure the things I might have worked on in the absence of the actual solutions discussed by you regarding this subject matter. It seemed to be a very fearsome circumstance in my opinion, however , taking a look at a new professional avenue you dealt with it took me to leap for contentment. I am grateful for the service and even pray you comprehend what a great job you are providing teaching the others through the use of your blog. More than likely you have never encountered all of us.

21. A lot of thanks for each of your labor on this web page. Debby take interest in setting aside time for investigation and it’s obvious why. I know all relating to the lively tactic you create useful tips on your website and in addition increase participation from people on the situation plus our princess is really starting to learn a lot of things. Enjoy the rest of the year. You are carrying out a wonderful job.

22. I am also commenting to make you be aware of of the useful experience my friend’s girl undergone using your webblog. She picked up plenty of issues, with the inclusion of how it is like to possess a very effective teaching nature to make other individuals really easily completely grasp a variety of tricky matters. You really did more than our expected results. I appreciate you for showing the necessary, safe, edifying and even fun guidance on the topic to Emily.

23. Hi it’s me, I am also visiting this website on a regular
basis, this web page is truly good and the people are
truly sharing pleasant thoughts.

24. Do you mind if I quote a few of your articles
as long as I provide credit and sources back to your site?
My blog site is in the exact same area of interest as yours and
my visitors would really benefit from a lot of
the information you provide here. Please let
me know if this ok with you. Regards!

25. Just desire to say ｙour article is aѕ amazing. Tһe clearness іn ʏour post іs simply cool and i cоuld assume уοu’re an expert on tһiѕ subject.
Fine wіtһ your permission allօԝ me to grab үour feed to қeep up to dɑtｅ ᴡith forthcoming post.
Тhanks a miⅼlion and pleɑse кeep ᥙp the enjoyable wߋrk.

26. You have made some really good points there.
on this site.

27. Converting a fixed layout for seamless – Karachi
| Mobile App, WordPress, Magento, Ecommerce
Developer
A motivating discussion is definitely worth comment.
I think that you ought to write more about this topic, it may not be a taboo matter
but generally people do not speak about these issues.
To the next! Kind regards!!

28. Please let me know if you’re looking for a article
author for your weblog. You have some really good posts
and I think I would be a good asset. If you ever want to take
Please send me an e-mail if interested. Regards!

29. Fantastic blog! Do you have any tips and hints for aspiring writers?
I’m hoping to start my own website soon but I’m a
little lost on everything. Would you recommend starting with a free platform like WordPress or go
for a paid option? There are so many choices out there that I’m totally confused ..
Any suggestions? Many thanks!

30. Pretty element of content. I just stumbled upon your site and in accession capital to assert that I get
actually loved account your blog posts. Anyway I’ll be subscribing to your feeds or even I achievement you get entry to consistently rapidly.

31. My partner and I absolutely love your blog and find many of your
post’s to be what precisely I’m looking for. Do you
offer guest writers to write content for you personally?
I wouldn’t mind writing a post or elaborating on a few of the subjects you
write in relation to here. Again, awesome blog!

32. Thanks for sharing such a pleasant opinion, article is good, thats why i

33. Have you ever considered about including a little
bit more than just your articles? I mean, what you say is valuable and
all. Nevertheless think of if you added some great
visuals or videos to give yoiur posts more, “pop”! Your content is excellent but with images
and video clips, this website could definitely bbe one of the best in its field.
Fantastic blog!

34. For hottest information you have to pay a visit internet
and on the web I found this website as a most excellent web

35. My programmer is trying to convince me to move to .net from PHP.

I have always disliked the idea because of the costs.
But he’s tryiong none the less. I’ve been using Movable-type on a number of websites for about a year and am worried about switching to another platform.
I have heard very good things about blogengine.net.

Is there a way I can transfer all my wordpress content into it?
Any help would be really appreciated!

36. Touche. Great arguments. Keep up the great work.

37. I wanted to thank you for thiѕ wonderful reaԁ!!
I aЬsolutely enjoyed еverｙ bit of it. Ι have got y᧐u book
marked to look аt new stuff yoս post…

38. Plaimiled

order viagra united states cialis prices buy viagra puerto vallarta

39. When some one searches for his required thing, so he/she wants to be available
that in detail, therefore that thing is maintained
over here.

Optimized with PageSpeed Ninja