Site icon Haznos

Bootstrap Responsive Framework For PSD To HTML Conversion

<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">Jacob Thornton and Mark Otto realized the need to have a standardized framework as well as some tools for development when Twitter started to expand&period; The decision lead them to the formation of toolkit with HTML and CSS known as Bootstrap &lpar;earlier known as Twitter Bootstrap&rpar;&period; This eased the development process to a great extent&period; Now a number of websites like MSNBC and NASA are making use of this framework&period; It is present on GitHub and is one of the most sorted out open source projects&period;  <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">The most important step that you need to take to convert an image design in <&sol;span><b>PSD to responsive HTML<&sol;b><span style&equals;"font-weight&colon; 400&semi;">&comma; is to write styles in CSS&period; This will decide the responsiveness of the site&period; To write the code in CSS you will get help from Bootstrap&period; This overall means that the responsiveness of the website depends on the CSS code&period; <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">So now a questions pops up in the mind&period; What is this Bootstrap and how we make use of it&quest; Simply&comma; Bootstrap consists of a collection of HTML&sol;CSS templates and a number of tools which you can make use of while developing the website&period; Now with the latest version of Bootstrap 2&period;0&comma; you can build responsive website as it supports responsive web development&period; You can develop any type of website with Bootstrap&period; You can even use it with different CMS&comma; which allows integration with custom CSS like Drupal&comma; Joomla&comma; WordPress&comma; etc&period; Again&comma; when it comes to this framework&comma; one of its outstanding features is that it supports different web browsers like Internet Explorer&comma; Firefox&comma; Chrome&comma; etc&period; <&sol;span><&sol;p>&NewLine;<h3 style&equals;"text-align&colon; justify&semi;"><em><b>What do you Mean by a Responsive Website&quest;<&sol;b><&sol;em><&sol;h3>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">A responsive website is one which you can view on different screen sizes without compromising on the optimal viewing experience&period; Here optimal viewing means a user can view all the contents of website even on a small screen device without doing much scrolling and even gets to view all the contents like image&comma; text and others properly&period; This means a website with optimal viewing feature will arrange and adjust itself automatically according to the screen size&period; <&sol;span><&sol;p>&NewLine;<h3 style&equals;"text-align&colon; justify&semi;"><em><b>How such Websites are Developed&quest;<&sol;b><&sol;em><&sol;h3>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">Generally two important techniques are followed to develop websites that are mobile compatible&period; One of these two techniques is to create a separate domain for the mobile website like xyz&period;com&sol;mobile or m&period;xyz&period;com and get the traffic directly on that domain&period; It is true that this way you will get an optimized version of your site&comma; but it comes with a number of disadvantages too&period; For example&comma; you may face the problems of promoting two different domains for the same store&comma; duplicate content as well as dilution of links&period; <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">Another technique is to create the website by making use of CSS styles so as to have responsive website with different versions that fits according to different screen sizes&period; Media Queries will help you detect the size of the screen&period; The only disadvantage that comes with this technique is that the old browsers does not support the new versions of CSS&period; This makes it difficult to display the sites with such CSS styles&period; This issue has been solved to a large extent as people keep on changing to the newer browser versions&period; <&sol;span><&sol;p>&NewLine;<h3 style&equals;"text-align&colon; justify&semi;"><em><b>Developer’s Work Simplified with Bootstrap<&sol;b><&sol;em><&sol;h3>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">Now developers can easily create different websites by making use of pre-built CSS framework from Bootstrap&period; It comes with a number of tools which the developers can easily use from the HTML of the website&period; All the important HTML components like page headers&comma; pills&comma; thumbnails&comma; accordion&comma; alerts&comma; button dropdowns&comma; navbar&comma; modals&comma; button groups&comma; carousel&comma; progress bars&comma; lists&comma; labels and typeheads have been defined with a basic style by Bootstrap&period;<&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;">Bootstrap is based on the dynamic style sheet language &&num;8211&semi; LESS which is regarded as a CSS extension&period; LESS is comparatively faster than other extensions like SASS&period; Moreover&comma; LESS is based on JavaScript&comma; which is well-versed by developers&comma; making it easy for them to understand&period;<&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">Even though&comma; most of the professional developers go their way to create custom code&comma; many prefer the CSS files of Bootstrap to develop their websites&period; The only issue with Bootstrap is that the framework is not fully built on CSS3 and does not completely support HTML5&period; This happens because only the latest browsers supports CSS3 and HTML5 technologies and most of the web users are working on the lower browser versions&period; So to make the website work everywhere&comma; you have to compromise somewhere&period; <&sol;span><&sol;p>&NewLine;<h3 style&equals;"text-align&colon; justify&semi;"><em><b>Getting Started with Bootstrap<&sol;b><&sol;em><&sol;h3>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">Before we get started with Bootstrap&comma; understand one thing that it is not possible to get the maximum out of the framework unless and until you have the complete knowledge of HTML and CSS&period; Many believe that it is quite easy to learn the technologies in just 3-4 months&period; But it is not quite true&period; You can follow some of the tutorials on the internet to learn CSS and HTML&period; <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">You need to download the compiled version from <&sol;span><span style&equals;"font-weight&colon; 400&semi;">http&colon;&sol;&sol;twitter&period;github&period;com&sol;bootstrap&sol;index&period;htm<&sol;span><span style&equals;"font-weight&colon; 400&semi;">l<&sol;span><span style&equals;"font-weight&colon; 400&semi;"> to start with Bootstrap&period; You can easily customize the framework using this site&period; You can start working on this compiled version automatically&period; It does not come with the source code&period; If you want to download the source code&comma; just visit <&sol;span><span style&equals;"font-weight&colon; 400&semi;">https&colon;&sol;&sol;github&period;com&sol;twitter&sol;bootstrap&sol;zipball&sol;master<&sol;span><span style&equals;"font-weight&colon; 400&semi;">&period; Just make sure to compile the file before using it&period; <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">Extract the zip file in a folder after downloading it&period; Now you need to initialize the Bootstrap&period; You have to do it in the head section as well as in body section having JavaScript&period; <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">&lt&semi;head&gt&semi;<&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">&lt&semi;meta name&equals;”viewport” content&equals;”width&equals;device-width&comma; initial-scale&equals;1&period;0″&gt&semi;<&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">&lt&semi;link href&equals;”css&sol;bootstrap&period;min&period;css” rel&equals;”stylesheet” media&equals;”screen”&gt&semi;<&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">…<&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">&lt&semi;&sol;head&gt&semi; <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">&lt&semi;body&gt&semi;<&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">&lt&semi;script src&equals;”http&colon;&sol;&sol;code&period;jquery&period;com&sol;jquery&period;js”&gt&semi;&lt&semi;&sol;script&gt&semi;<&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">&lt&semi;script src&equals;”js&sol;bootstrap&period;min&period;js”&gt&semi;&lt&semi;&sol;script&gt&semi;<&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">…<&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">&lt&semi;&sol;body&gt&semi; <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">Understand that there is no need to call JavaScript as most of the things would work without it&period; Still some functions such as dropdown menus and alert need animations and functions styled using JavaScript&period; <&sol;span><&sol;p>&NewLine;<h3 style&equals;"text-align&colon; justify&semi;"><em><b>Bootstrap Grid<&sol;b><&sol;em><&sol;h3>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">There are 12 grids in Bootstrap and you can find them as fluid and fixed grids&period; The fixed grids use pixels through column width on the other hand&comma; fluid grids measure relative length in percentage&period; <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">In order to make the website responsive&comma; fluid grid is used by Bootstrap which changes the column width in the grid and adjusts the text and heading accordingly&period; Image sizes are also resized using fluid grid as it is measured in percentages&period; You have to use stack instead of float elements to make the website responsive&period; <&sol;span><&sol;p>&NewLine;<h3 style&equals;"text-align&colon; justify&semi;"><em><b>Bootstrap and JavaScript<&sol;b><&sol;em><&sol;h3>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><span style&equals;"font-weight&colon; 400&semi;">There comes JavaScript files along with Bootstrap that supports a number of components as well as extends its abilities on the Bootstrap framework&period; The best thing is that all the plugins are available in a single file and you don’t have to write a single line of code to access them&period; The simple API mark will help you access them&period; Some of the Bootstrap features that make use of JavaScript are buttons&comma; collapse&comma; modal&comma; affix&comma; dropdowns&comma; carousel&comma; tab&comma; alerts&comma; tooltip&comma; popover&comma; scrollspy&comma; typehead and transitions&period; <&sol;span><&sol;p>&NewLine;<p style&equals;"text-align&colon; justify&semi;"><em><b>Conclusion&colon; <&sol;b><&sol;em><strong><span style&equals;"font-weight&colon; 400&semi;">For all the programmers out there looking for ways to create a responsive website&comma; Bootstrap is just for you&period; It is true that there are other responsive frameworks too&comma; but Bootstrap is an open source project which is constantly evolving&period; This means you will be able to get complete support of this framework on CSS3 and HTML5 in the future&period;  <&sol;span><&sol;strong><&sol;p>&NewLine;

Exit mobile version