redarrow Posted February 14, 2009 Share Posted February 14, 2009 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;"> Quote Link to comment https://forums.phpfreaks.com/topic/145192-solved-css-problam-in-php/ Share on other sites More sharing options...
redarrow Posted February 14, 2009 Author Share Posted February 14, 2009 sorry forgot the f on color lol Quote Link to comment https://forums.phpfreaks.com/topic/145192-solved-css-problam-in-php/#findComment-762061 Share on other sites More sharing options...
redarrow Posted February 14, 2009 Author Share Posted February 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/145192-solved-css-problam-in-php/#findComment-762105 Share on other sites More sharing options...
Daniel0 Posted February 14, 2009 Share Posted February 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/145192-solved-css-problam-in-php/#findComment-762109 Share on other sites More sharing options...
redarrow Posted February 14, 2009 Author Share Posted February 14, 2009 so dan there not no calculator where you can add the size you want and you get the result in all html/css sizes Quote Link to comment https://forums.phpfreaks.com/topic/145192-solved-css-problam-in-php/#findComment-762110 Share on other sites More sharing options...
Daniel0 Posted February 14, 2009 Share Posted February 14, 2009 No. E.g. 1% is just 1%. It doesn't mean anything by itself. 1% = 1/100 = .01 You need to know what you are taking x% of. This will be the parent element. Quote Link to comment https://forums.phpfreaks.com/topic/145192-solved-css-problam-in-php/#findComment-762112 Share on other sites More sharing options...
redarrow Posted February 14, 2009 Author Share Posted February 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/145192-solved-css-problam-in-php/#findComment-762114 Share on other sites More sharing options...
Daniel0 Posted February 14, 2009 Share Posted February 14, 2009 No, it's not really possible. If you look at my first code example then you'll see that if I changed elem1 to be size:50px; then elem1 elem2 would be: 50px * .9 = 45px instead of 9px. Quote Link to comment https://forums.phpfreaks.com/topic/145192-solved-css-problam-in-php/#findComment-762118 Share on other sites More sharing options...
redarrow Posted February 14, 2009 Author Share Posted February 14, 2009 ok mate i wont go on you said it but thank you. Quote Link to comment https://forums.phpfreaks.com/topic/145192-solved-css-problam-in-php/#findComment-762119 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.