960px is the correct width for website? is percentage better? With only percentage the website is responsive? [closed] - css

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I´m trying to develop my first website. And I´m a bit confuse about some points.
I´m developping the html & css and then I want to do my website responsive.
First, I did some research to choose the width for my website, and i found information that the 960px is the best width, So I´m developing my content in 960px! But I have a 17 inch laptop and I have too much white space around the content. Its better do with 1024px for example? Or 960px is better?
And if I do with percentage for example, instead 960px use 70% I´ll resolve the white space, right? This is correct to do?
Second, to my site be responsive I was searching information and I was studying about media queries, but if I use percentage, I dont need to use the media queries, because the site is already responsive, right, or not?
Sorry to bother with this question that may seem simple but I am a beginner and I have this doubt, and maybe with your exprience, you can help me understand better.

Using percentage, your site will be fluid. To be responsive, use media queries, so you have a site adapted to the screen size, not forcing the content.
A little about CSS Media Queries: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries

Related

Why is the new google logo not in CSS? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
So, I'm learning CSS and came to know that you can create simple images by using CSS. The new google logo is entirely composed of circles and rectangles, so that its size is much lesser than the old one, which is in line with their mission to get google in underdeveloped countries, with slower internet. My question is, won't using CSS for logo be much smaller in size than using an image
According to Google's description of the process they went through redesigning their logo, there's a variant of the image that's only 305 bytes. So they wouldn't gain much by converting it to CSS.
As always there are multiple ways to solve a problem. Trying to recreate the logo in css is one of them but that's not what CSS is for.
There are multiple ways Google could show their logo:
As an image: png, jpg, svg
As a seperate file
Embedded in the html or css document
As a font
As you propose, recreate in html and css
Each of these solutions have their benefits and drawbacks. You only mentioned one benefit but their are so many other things you need to check: performance, platforms, accessibility, ...
In general you will notice that just displaying an image gives the best result.

What is best practice for fluid designs - using css sprites or inline images? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am working on a web site which is supposed to have a fluid layout. I am currently presented with a dilemma: shall I use css sprite or opt for inline images?
All images will need to be fluid and reduce/enlarge their size on each respective screen size. I was thinking to use CSS sprite image but that would mean that I need to identify all major screen widths and then slice all images with those respective widths and add them to my sprite...
My questions is: what is the best approach for rendering images in fluid / responsive designs? Sprites, inline images or combination of both?
Thank you!
Personally I think sprites are a little unnecessary, the internet is fast enough now to just use separate bg images. Displaying the correct image by using media queries and constraining the size in fluid designs by using background-size: cover; or contain.

Non-responsive site will not resize to fit mobile browsers [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I'm trying to take a template that was designed to be responsive and make it "unresponsive."
http://myhurlburt.com/NEW/bowling.php
The width of the page is set to 960px. When I view it on an iPad or iPhone, you have to scroll to the side to see the entire page. Do you know what in my CSS is causing that? I would like the entire site to "fit" into a browser so the user does not have to scroll to the side.
It's a big job to change an unresponsive site to a responsive one.
But you could try something like this to get started.. .wraper currently has it's width set to 960px.
.wraper{
width:100%;
max-width:960px;
}
use % for width, height and other margins. Use media queries also. If not, do zoom:1(2,3 or something);
Start by scaling the website with min/max widths and additionally use percentages instead of px.

Why doesn't my responsive website look good when the viewport is small? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have been working on this site for a few days now and am trying to get it to look great when the window/viewport is ANY size... Currently it looks pretty good on a widescreen or normal 1024 monitor for me... However I am having problems getting it dialed out for iPhone / iPad and smaller sizes...
I would like for everything to be responsive and fluid... Currently when viewed on an iPhone only the 1st block looks good... The other blocks have content that extends past the right side of the window so that the user has to scroll over with his/her finger to view the content.
I've played with the viewport (set min & max) and Iv'e now got a min-width of 980px on each of the blocks to make sure the background covers the screen... Not quite sure where I'm going wrong here...
Would appreciate some pointers or anything to make my site more responsive! Tips... WTFS... Etc ;)
Thanks again
(post these comments as an answer because it turned out to be the answer)
I'd suggest getting a hold of Zurb Foundation or Twitter Bootstrap (recommend Foundation) and using that as your base layout while you get more familiar with responsive design. Once you see how they're put together you will be able to tackle your layout again.
change the layout for mobile version with the help of Media queries i mean desktop kind of design will not look good in mobile version for example the main menu is looking good in desktop and for lower screen sizes you have to change the Menu like dropdown..

optimum resolution for a web layout when designing in Photoshop? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
First of all I want make clear that though I'm still learning CSS, I think I have fair understanding of it and especially liquid aspect of it and I also think that this is the way to go, however my question is about the graphic stage of web designing, so if I want to start a new project in Photoshop; what are the best page dimension should I use, keep in mind that I intend to use relative values when coding in CSS? and thanks in advance.
I usually use 1300px x 2000px for the photoshop document.
Then I "sketch" up the 960px width wrapper.
From there I start the creative process.
Take a look at http://photoshopetiquette.com/ for some more tips on web design in photoshop.
Cheers!
Most of the pages are being made to fit in 1024x768 (without a horizontal scroll) and the width of the page is about 950-980px. I can suggest you to start with 1200x1400 canvas in Photoshop and you can always resize it just go to Image -> Canvas Size

Resources