I'm currently developing a Web application using Bootstrap (latest) Dashboard sample : http://getbootstrap.com/examples/dashboard/ , as you can when you open this sample and resize the browser to a width less than 767px the list on the left side disappear,
http://im66.gulfup.com/XemFyZ.png
So my goal is to change bootstrap so that it have a minimum width of 1000px so it (Application) can not apply the responsive of mobile and tablet BUT in the same time still adapt with larger screen. and the left list always appear.
Note that I already search here but nothing help
Bootstrap 3 is mobile-first so be default it is going to attempt to be responsive down to the smallest window size set. There are many ways to address your needs, the simplest without getting into LESS compiling (which would be the best way to do it) is to use the Bootstrap customization tool and set your screen widths before building your unique install of Bootstrap.
Media Query Breakpoints
http://getbootstrap.com/customize/#media-queries-breakpoints
Related
I've been trying to optimize my lay out as responsive as possible, but I've bumped into weird problem; despite my iPhone and iPad Mini are showing to be two different sized platforms according Bootstraps' site, yet while making edits on my lay out, they both seem to interpret the lay out in sm-size.
How I can get it so that Bootstrap understands that small screen with 960 px screen is no suitable for sidebar without effing up desktops and tablets?
Bootstrap provides exact media queries here: http://getbootstrap.com/css/#grid-media-queries . With a 960 px screen you would have to alter this to fit this exact resolution. When you hit desktops and larger, the same would apply to adjust the media query/css.
You're able to customize these media queries and CSS to fit your needs a few ways:
Customizing Bootstrap and compiling and downloading the results thru the 'Customize' section http://getbootstrap.com/customize/
Creating custom Media Queries/CSS to right over the default Bootstrap Media Queries/CSS rules. This can be done with regular .css file, Less or Sass (see 1st url for grid table that outlines pixel dimensions for different media size(s)).
It seems the default media queries are working fine for your iPhone and iPad Mini - and as the default for Bootstrap is mobile first, the sm-col class prefix would make this work likely how you want (I am assuming I am reading your statement properly).
Post a follow-up to see if this helps and/or more detail can be provided.
I hope I've helped and/or guided you in the proper direction (this is my first question I'm answering, be kind :-)).
I'm having a problem with a website I've built: whenever I view the site on a smaller monitor or when I resize the browser window, the content gets covered by the other divs. I need the content to be fully visible, no matter what size the browser is.
http://sophisticateddesign.nl/cfreport/overons.html
Also, on the homepage the text gets cut off a little bit on the bottom row when I resize the browser. I need this row to increase in height a bit, which apparently can't be achieved by simply increasing the divs' height.
http://sophisticateddesign.nl/cfreport/index.html
You should take a look at responsive web design. By using a fluid grid together with one or many media queries you can achieve what you're asking for.
Here's a good introduction if you'd like to get started. I can also highly recommend Ethan Marcotte's book about the subject!
The simplest way is not to define widths in pixels but using only width in %. You defined for example width: 960px; for <html> so if the browser window is less than 960px the whole content of this site won't be visible. You also defined the footer width and probably some more elements.
But the true is nowadays you should learn rather Responsive Web Design to create your page adjusting to device width. Many sites are being used by people on PC, laptops, tablets and mobile phones and you cannot create complex site to look nice on all those devices without using responsive design techniques.
I need to put together website for mobile devices, so iPhones and various androids. The problem is I struggle with getting viewport right and other settings. My goal is so webpage would be coded for specific width e.g. 640px wide. Then once open device would zoom it in/out to the width of the screen so everything became larger or smaller same like after zoomig in/out via pinching on the device screen.
So I would like to develop it for lets say 640px width and depending on device it would scale up or down once open. So if device screen would be 960px wide it would automatically scale to this width via viewport somehow. Is this possible at all to have it coded for predefined width in css and have zoomed in/out as needed by device itself?
I apologize if the question is too generic, will explain details if needed.
EDIT:
So the most common approach if I understand correctly is to provide few layout versions for most commons screen sizes? Using media queries in css provide different values for widths, fonts sizes etc is that right?
If I decide however to go with percentages rather than media queries, given the design provided I think still would have a problem with resizing fonts as layout has images with text in it and text needs to be proportional to the image. Also percentages would take care of widths, height might be an issue though as the images would have to be resized vertically too. Some parts of the design would need to "fit" each other it seems and it would become problem I think.
Now if I simply build a website of certain width, lets say 640px I should be able to position everything on the screen with pixels, no diffeent from normal non-mobile website.
So I tried to set <meta name="viewport" content="width=640"> and inside of a page set width of widest container in css to 640px making page width 640px basically. If I understand correctly it will set up viewport to exact width of the page. So the page would be build as any other non-mobile webpage. User will have to adjust scale by pinching as when the page opens it is usually zoomed in/out for some reason. Is my understanding of what is happening here correct or is there some problem with it. Having it predefined size takes care of different mobile screen sizes as viewport is always same, fits into page width and only scale seems the problem, that is unless I'm missing something here.
I also should have mentioned that I need to do only portrait and make it only option, so no landscape view (that will be another question).
Would love to know your thoughts and I appreciate all the answers so far.
This is called Responsive Web Design when a website adjusts according to screen size...
You can make this kind of responsive website easily through CSS3 Media Queries:
How to write CSS Media Queries for common types of devices
Responsive Web Design: What It is and How to Use It
If you google for Responsive Web Design you will find lots more information on this topic. It's really an amazing method to make your website look great on all devices from small to large screens.
We have a series of tutorials on creating web pages using responsive web design. If you want a quick introduction to it checkout Introduction: Creating a Responsive Web Design, it lists common mobile phone and tablet sizes, so it might lead you to the answer you need. You can find the link to our tutorial series in the article. The solutions provided use Bootstrap in order to provide easy to create pages. And it also provides free samples of responsive web design pages.
I hope this helps to provide the answer that you need, if not, then please let us know if we can provide any further assistance.
Regards,
Arnel C.
InMotion Hosting Community Support Team
Specify the width in percentage say width=100%,which automatically adjusts the width with the screen.
I've been told to look into using a framework like Blueprint or 960 for my CSS.
What I don't understand is how it makes a site look consisent even if two users have different screen resolutions.
How does that work?
They specify sizes using units that are not relative to the window size. So if the user has a wide window there is a gutter and if a narrow window, a horizontal scrollbar.
Resolution is irrelevant except as a limiting factor on the user's maximum window size.
How to change dimension of a webpage. I want to build a mobile website and thus the width should not be greater than 320. Is there any way to change dimension.
Also what should be the steps to build a mobile website.
I assume you are using a fixed width layout like the 960 grid system?
You have two options:
Build a separate 'mobile' version of your whole website, and switch to that by detecting the phone in the HTTP headers.
Use a fluid design, so your website design can squeeze into any space you put it into.
If you choose the latter, take a look at http://cssgrid.net/ - this allows your website to fit onto large widescreens and tiny mobile screens, with only one design!
Got the answer. By making a table of desired width. Working perfectly.