Welcome!

And don't forget to edit your signature & profile.

 

Icon

Statistics

  • Total posts 23318
  • Total topics 4048
  • Total members 5574
  • Our newest member
    ALF5583

TOP POSTERS

Ask SM: your CSS Question please

All problems and developments related to (X)HTML-markup and stylesheets are discussed and resolved here.
   

Re: Ask SM: your CSS Question please

Postby iGammaRay » Sun Feb 08, 2009 9:52 am

@tosman01
what are the dimensions i should use when making a centered site layout

thanks


This really depends on your site. You can have it as wide or as thin as you like. However, keep in mind your audience, and there will be some people with small monitors and resolutions. Here are some good dimensions to use:

800px wide
: This is a standard, as the one of the most common resolutions for old monitors and computers is 800 x 600px. However, you may have trouble trying to fit all your content nicely into 800px of space. Few websites with a lot of content use this width.

960px wide: This is my personal favourite. It is interesting to note that 960 can be divided into 3, 12, 16, and 4 equally. This makes it extremely useful when laying out your site into columns and grids. It also makes it easy to design your site with 'balance' and 'form'. 960px also has plenty of space for laying out a whole variety of content beautifully, while still being viewable easily by those who have small monitors and resolutions.

1000px: Commonly used for forums. Not as readable as 960px in small monitors, but still good.

1100px wide: This is a width commonly used by "heavy content" websites. One example is Smashing Mag!

The above dimensions are just examples. You may choose any width that suits the purpose of your site and audience. Try to keep it atleast 800px wide, but not go over 1400px, for good reasons.

Hope that helps! :P
I'm the PHP guru around here. Really. PM me if you got a project. (I can also do PSD->XHTML/CSS and any other web development related job).
User avatar
iGammaRay
Smashing <table>
 
Posts: 33
Joined: Fri Jan 23, 2009 11:39 am
Location: Canada
   

   

Re: Ask SM: your CSS Question please

Postby Vitaly » Sun Feb 08, 2009 11:34 pm

@mcsheffrey @smashingmag anyone know why float:left would stop an image ":hover" from working? thanks #css
Team
User avatar
Vitaly
Smashing <div>
 
Posts: 183
Joined: Sun Sep 28, 2008 6:37 am
Location: Germany
   

   

Re: Ask SM: your CSS Question please

Postby popbogdan » Mon Feb 09, 2009 11:39 am

float:left doesn't stop img:hover from working. There's probably some css conflicts in your document.
popbogdan
Smashing <table>
 
Posts: 37
Joined: Fri Jan 30, 2009 5:22 pm
Location: Cluj-Napoca, Romania
   

   

Re: Ask SM: your CSS Question please

Postby designjd » Mon Feb 09, 2009 2:02 pm

Hi
i have been designing this web-site: http://www.mcandtoastmaster.co.uk/index.html
and the text on the right side bar is white but prints out as grey, only in IE as far as i can understand!
any suggestions?

thanks very much
Jon Docksey
User avatar
designjd
 
Posts: 1
Joined: Mon Feb 09, 2009 1:56 pm
   

   

Re: Ask SM: your CSS Question please

Postby kyochan » Mon Feb 09, 2009 3:09 pm

Why is there a 4px gap between inline-block elements? Other than floating them, which causes more issues than solving them IMO, is there any other way to close it?
kyochan
 
Posts: 3
Joined: Mon Feb 09, 2009 2:32 pm
   

   

Ask SM: your CSS Question please

Postby brucearnold » Mon Feb 09, 2009 5:55 pm

I have seen dozens of ways of creating css drop shadows on images but nothing on inner-shadows.
The Tumblr theme page has them but they are for a fixed image size; I can't find a good way to make them for a variety of image sizes.
brucearnold
 
Posts: 1
Joined: Mon Feb 09, 2009 5:44 pm
   

   

Re: Ask SM: your CSS Question please

Postby samuel99 » Fri Feb 20, 2009 1:34 pm

My question:

IE7 says it supports PNG24 with alpha transparency, but when changing opacity (with jQuery) on a picture that has alpha transparency all the pixels that has partitial transparency becomes totally black :(

Is there a workaroud?
samuel99
 
Posts: 1
Joined: Fri Feb 20, 2009 1:31 pm
   

   

Re: Ask SM: your CSS Question please

Postby Hanne » Fri Feb 20, 2009 4:38 pm

What's your favourite trick/technique in CSS? Any advice for making coding in CSS easier in day to day life?
User avatar
Hanne
Smashing <hr />
 
Posts: 62
Joined: Mon Feb 09, 2009 6:08 pm
Location: Norway
   

   

Re: Ask SM: your CSS Question please

Postby DanH » Fri Feb 20, 2009 5:22 pm

According to http://www.w3schools.com/browsers/browsers_stats.asp, IE 6 represented 18.5% of all browsers currently in use.

In your opinion, at what point is it acceptable to stop going the extra mile to IE6-proof websites? It was released in 2001, only 2 years after IE 5, and I don't expect that many designers are concerned with the way their sites display on IE5.

Sure, there's the die-hard crowd that's going to crow that we must make every web page degrade gracefully forever, but deadlines are deadlines and eventually there will come a time (if it hasn't come already) that adding endless conditional comments will be an inefficient drain on our workday. Eventually, it'll be more cost-effective for designers to just forget about IE 6 altogether.

So the question is, when will that time come?
DanH
 
Posts: 1
Joined: Fri Feb 20, 2009 5:04 pm
   

   

Re: Ask SM: your CSS Question please

Postby suciuvlad » Fri Feb 20, 2009 7:42 pm

Vitaly wrote:@mcsheffrey @smashingmag anyone know why float:left would stop an image ":hover" from working? thanks #css


float applied to <img> shouldnt be stopping img:hover from working, maybe you could post the code to check the issue.
User avatar
suciuvlad
Smashing <div>
 
Posts: 100
Joined: Mon Feb 09, 2009 5:19 pm
Location: Baia Mare, Romania
   

   

Re: Ask SM: your CSS Question please

Postby 3zzy » Sun Feb 22, 2009 7:31 am

I've never used/required to use some of the properties, can you please explain practical example usage of the following properties. Should be interesting to know.

accelerator
azimuth
behaviour
clip
cue
elevation
line-break
marks
orphans
page
richness
white-space
widows
word-break
zoom

(some of these maybe from CSS3)

Thanks in advance.
— xHTML/CSS Ninja
User avatar
3zzy
Smashing <span>
 
Posts: 95
Joined: Sat Feb 14, 2009 11:33 pm
   

   

Re: Ask SM: your CSS Question please

Postby ckester » Tue Feb 24, 2009 11:07 am

What are the best ways to improve google rank on a website?
ckester
 
Posts: 2
Joined: Tue Feb 10, 2009 11:25 pm
   

   

Re: Ask SM: your CSS Question please

Postby ben099 » Fri Feb 27, 2009 9:02 am

Hey Chris!

The code for embedding a YOU TUBE video is not valid W3C. As soon as you make it W3C valid (for example as shown on http://blog.artesea.co.uk/2008/05/youtu ... ectly.html) the videos can not be played on the iphone. Got any idea how to solve this problem?

Thanks mate and best regards from Switzerland

ben099
ben099
 
Posts: 1
Joined: Fri Feb 27, 2009 8:59 am
   

   

Re: Ask SM: your CSS Question please

Postby popbogdan » Sat Feb 28, 2009 2:56 pm

designjd wrote:Hi
i have been designing this web-site: http://www.mcandtoastmaster.co.uk/index.html
and the text on the right side bar is white but prints out as grey, only in IE as far as i can understand!
Jon Docksey

It prints fine here. Anyways, you should try to put text in there, not text embedded inside a picture.

kyochan wrote:Why is there a 4px gap between inline-block elements? Other than floating them, which causes more issues than solving them IMO, is there any other way to close it?

Do you use any resets in your styles? You should try no margins and padding what so ever to those blocks. That's what usually causes the "gap" between different elements on some browsers.

Hanne wrote:What's your favourite trick/technique in CSS? Any advice for making coding in CSS easier in day to day life?

Hmm. The trick is not to use any tricks. About 2 months after I stopped inserting hacks, conditionals etc into my css files,, my sites started working the same on more than 50 browsers. Now, I usually don't even test sites before their finished, and once their done (xhtml part, I mean), I need only minor changes to achieve the above.

Perhaps the thing I like most is a personal variation of the faux columns.
DanH wrote:According to http://www.w3schools.com/browsers/browsers_stats.asp, IE 6 represented 18.5% of all browsers currently in use.

In your opinion, at what point is it acceptable to stop going the extra mile to IE6-proof websites? It was released in 2001, only 2 years after IE 5, and I don't expect that many designers are concerned with the way their sites display on IE5.

Eventually, it'll be more cost-effective for designers to just forget about IE 6 altogether.

This depends on how you look at your work in the first place, and then how you want others to see you. Some important elements in all the sites I develop work ok and look great even on IE 5.5 . If the quality of your work is higher, you get paid more, and can afford to work on fever projects. I prefer this against working on 5 times more projects and doing a crappy job.

And no, I think I will not ditch IE 6 in the next 2 or 3 years. There's lots of people still using it. Based on the statistics behind the sites I currently run, there's about 30% people on IE 6.

The best way to see if you should consider IE 6 is to check the stats of the site your developing. It could turn out that an IT site has less than 5% IE users.

ckester wrote:What are the best ways to improve google rank on a website?

It is definitely not a CSS issue, as CSS handles the design part.
popbogdan
Smashing <table>
 
Posts: 37
Joined: Fri Jan 30, 2009 5:22 pm
Location: Cluj-Napoca, Romania
   

   

Re: Ask SM: your CSS Question please

Postby jitendra.web » Tue Mar 24, 2009 2:49 am

how can i create one site for all devices and screen resolutions . PC, blackberry, iphone , other mobils, psp etc
jitendra.web
 
Posts: 3
Joined: Thu Feb 12, 2009 10:05 am
   

PreviousNext

Return to CSS and (X)HTML



Who is online

Users browsing this forum: No registered users and 1 guest