473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

percentage vs pixels?

i heard always to use percentage to define things in CSS
because pixel is browser/OS-specific?

zach

Jul 21 '05 #1
5 8854
in comp.infosystems.www.authoring.stylesheets, Zach wrote:
i heard always to use percentage to define things in CSS
Good idea, often. Also learn about em unit.
because pixel is browser/OS-specific?


Not really. It just is bad unit for screen. There is many more things
that make px different size than just OS and browser.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Jul 21 '05 #2
"Zach" <ne****@gmail.com> wrote:
i heard always to use percentage to define things in CSS
because pixel is browser/OS-specific?


No, because % is more flexible.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 21 '05 #3
ok i will look into em, thanks.
is there css site that can analyze my css code?

zach

Jul 21 '05 #4
On 16 Feb 2005 15:02:27 -0800, "Zach" <ne****@gmail.com> wrote:

[...]
is there css site that can analyze my css code?


If you could be convinced to spend some time on the FAQ for this NG you
would not need to ask such a question (and not a couple of the other Q's
you posted before either).

(hint...you can find it in the Google archive for this NG)

--
Rex
Jul 21 '05 #5
Zach wrote:

i heard always to use percentage to define things in CSS
because pixel is browser/OS-specific?

zach


Actually, pixel is resolution-specific and monitor-specific. 35%
of Web surfers still use 800x600 pixels; slightly over half use
1024x768. Then, there are those who surf while using Web-capable
cell phones and similar devices.

Use percentages so that all these can properly view your pages.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: mr_burns | last post by:
hi, is the table percent value for height used for displaying in browsers. i have a table i want to run to the bottom of the screen so it seemed best to set the height value to 100%. when i...
0
by: null Effects | last post by:
I made a page that has some divs that I would like to line up next to each other. I used percentage values to set their positions and sizes, but in IE6 there are breaks in between them and I can't...
3
by: Les Juby | last post by:
I am trying to adjust the window/table size of a website (www.worklaw.co.za) which has made use of DIV tags with its settings embedded in an CSS file. The client wants its width and height to...
8
by: Chris | last post by:
I am unable display an image by percent. No matter what method I try, I receive the following error. Input string was not in the correct format. No matter what method I use, I cannot get this...
0
by: fake ID | last post by:
Since you can't search for these symbols used in asp.net "<%#" or '<%=' I thought i'd post this to make things a little easier to find. Potential search word combinations: -lessthan Percentage...
6
by: Hacking Bear | last post by:
Hi, I still don't quite fully understand how to handle mixing border/margin pixel width with percentage width. In the example below, I want to place side-by-side two DIV boxes inside a box....
1
by: Martin84 | last post by:
Ok, for the game that I am creating at the moment I have a health bar animation that starts off full and empties as time goes on. When the health bar is empty it goes to the gameover screen. This...
11
by: sariset | last post by:
here is a sample of my problem <table style="width:100%;height:100%"> <tr style="height: 60%"> <td style="width: 968px"> <div style="height:...
5
by: Aswanth | last post by:
I'm Using Asp.Net with C# & Working with SSRS 2005 for Generating Reports.. The Following Expression I'm using in Reports to Show the Percentage of Particular Items in REPORT.. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.