Jump to content

[SOLVED] css problam in php


redarrow

Recommended Posts

why my css only working with ie, and not new Firefox version please help

 

it is in a php file..

 

<br>

<hr STYLE=" color: #3366f;  background-color: #3366f; width: 1218px;">
<div align="center"><b>(c) www.</b></div>
<hr STYLE="color: #3366f; background-color: #3366f; width: 1218px;">

Link to comment
Share on other sites

can anybody give me a link, to get the difference in px and present % and overs please.

 

confusing me.

 

example is 100% mean 1000px how it work lol, going mad.

 

i need, a chart badly, so i dont have to keep looking at the page please.

 

begging and crying for a chart or a written one on here pretie please.

 

 

Link to comment
Share on other sites

You cannot say that x% = x px. It doesn't work that way. Percentages is a way of specifying the size relatively, but pixels is a way of specifying the size in absolute measure.

 

Take a look at this for instance (pseudo-code):

elem1 {
size: 10px;
}
elem1 elem2 {
size: 90%;
}

 

The size (whatever that might mean) of an elem2 element inside an elem1 element will be: 10px * .9 = 9px

 

Now check this out:

elem1 {
size: 10px;
}
elem1 elem2 {
size: 90px;
}

 

Now the size of an elem2 element inside an elem1 element will be 90px and 90px is always 90px.

Link to comment
Share on other sites

ok mate.

 

I fort with knowing, a programmer could do it. in the size off a monitor.

 

example

 

14 inch

19 inch

22 inch

28 inch

 

a script that can do this to get the correct results. (( i no i am dreaming off such code or calc

 

thank you anyway your the best.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.