473,386 Members | 1,706 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.

a php browser selector?

Ole
Is there made a php script that selects a browser specific css file? I am
really surprised at the difference in position

Ole
Jul 21 '05 #1
14 2148
Ole wrote:
Is there made a php script that selects a browser specific css file? I am
really surprised at the difference in position

Probably. But why would you want to create a major maintenance PITA?
What exotic design has demanded incompatible CSS for different browsers?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #2
Ole

"Jim Moe" <jm***************@sohnen-moe.com> skrev i en meddelelse
news:_O********************@giganews.com...

Probably. But why would you want to create a major maintenance PITA?
What exotic design has demanded incompatible CSS for different browsers?


firefox and opera dont show width the same way, I know that padding does
some funny thing to width, I am not totally new, but still, I find it a bit
strange that it do what it do.

http://83.72.6.205/auninghusmenighed.dk/index.php the backgroudn picutre is
just for fun, not the one I will use

Ole
Jul 21 '05 #3
On Tue, 1 Mar 2005 03:25:44 +0100, in
comp.infosystems.www.authoring.stylesheets "Ole"
<o-******@tele2adsl.dk> wrote:
| Is there made a php script that selects a browser specific css file? I am
| really surprised at the difference in position


Try this site for some work-arounds for different browsers rendering
CSS:
http://www.sitepoint.com/article/bro...ific-css-hacks
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Jul 21 '05 #4
"Ole" <o-******@tele2adsl.dk> wrote:
"Jim Moe" <jm***************@sohnen-moe.com> skrev i en meddelelse
news:_O********************@giganews.com...

Probably. But why would you want to create a major maintenance PITA?
What exotic design has demanded incompatible CSS for different browsers?


firefox and opera dont show width the same way, I know that padding does
some funny thing to width, I am not totally new, but still, I find it a bit
strange that it do what it do.

http://83.72.6.205/auninghusmenighed.dk/index.php the backgroudn picutre is
just for fun, not the one I will use


Change your doctype to one that triggers Standards mode. In Quirks
mode Opera copies a whole bunch of IE bugs. At the moment Firefox is
displaying your page correctly and IE and Opera are displaying it
incorrectly.

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 #5
Ole

"Steve Pugh" <st***@pugh.net> skrev i en meddelelse
news:7u********************************@4ax.com...

Change your doctype to one that triggers Standards mode. In Quirks
mode Opera copies a whole bunch of IE bugs. At the moment Firefox is
displaying your page correctly and IE and Opera are displaying it
incorrectly.


could you please help me? I dont know anything about doctype, I have found
it, but I dont know what to change

Ole
Jul 21 '05 #6
"Ole" <o-******@tele2adsl.dk> wrote:
"Steve Pugh" <st***@pugh.net> skrev i en meddelelse
news:7u********************************@4ax.com.. .

Change your doctype to one that triggers Standards mode. In Quirks
mode Opera copies a whole bunch of IE bugs. At the moment Firefox is
displaying your page correctly and IE and Opera are displaying it
incorrectly.


could you please help me? I dont know anything about doctype, I have found
it, but I dont know what to change


Have a read of: http://hsivonen.iki.fi/doctype/ and the various
resources linked to from there. That explains what to do and why/how
it works.

Note that when you get everything working the same in FF, Opera and
IE6; IE5 will still be getting things wrong. At that point you may
decide that you need some CSS hacks to feed IE5 different style values
- http://www.dithered.com/css_filters/

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 #7
Ole

"Steve Pugh" <st***@pugh.net> skrev i en meddelelse
news:7u********************************@4ax.com...

Change your doctype to one that triggers Standards mode. In Quirks
mode Opera copies a whole bunch of IE bugs. At the moment Firefox is
displaying your page correctly and IE and Opera are displaying it
incorrectly.


thanks, what I really want is to be able to make pages like csszengarden, I
know I have alot to learn before I can start thinking about publishing on
the web, but if you have any good advice or books to mention, please do

Ole
Jul 21 '05 #8
Ole

"Steve Pugh" <st***@pugh.net> skrev i en meddelelse
news:kn********************************@4ax.com...

Have a read of: http://hsivonen.iki.fi/doctype/ and the various
resources linked to from there. That explains what to do and why/how
it works.


is my understanding correct in using

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

if I want the mozilla browsers also?

Ole
Jul 21 '05 #9
Ole wrote:
"Steve Pugh" <st***@pugh.net> skrev i en meddelelse
news:kn********************************@4ax.com...
Have a read of: http://hsivonen.iki.fi/doctype/ and the various
resources linked to from there. That explains what to do and
why/how it works.


is my understanding correct in using

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

if I want the mozilla browsers also?


Are these new documents? Why use transitional?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Works in all browsers.
http://www.w3.org/QA/2002/04/valid-dtd-list.html
--
-bts
-This space intentionally left blank.
Jul 21 '05 #10
Ole

"Jeff North" <jn******@yahoo.com.au> skrev i en meddelelse
news:p1********************************@4ax.com...

Try this site for some work-arounds for different browsers rendering
CSS:
http://www.sitepoint.com/article/bro...ific-css-hacks


concerning books about hacks, can you recommend their book about it or are
there some better?
Thanks for the link

Ole
Jul 21 '05 #11
Ole

"Beauregard T. Shagnasty" <a.*********@example.invalid> skrev i en
meddelelse news:38*************@individual.net...
Ole wrote:

Are these new documents? Why use transitional?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Works in all browsers.


Thanks

Ole
Jul 21 '05 #12
in comp.infosystems.www.authoring.stylesheets, Ole wrote:

"Jeff North" <jn******@yahoo.com.au> skrev i en meddelelse
news:p1********************************@4ax.com...

Try this site for some work-arounds for different browsers rendering
CSS:
http://www.sitepoint.com/article/bro...ific-css-hacks


concerning books about hacks, can you recommend their book about it or are
there some better?


I wouldn't recommend book about CSS hacks. There is no sence to learn
about CSS hacks, when you don't need them. And book will be outdated
soon.
And the above article is one of the worst on CSS hacks (though I have not
seen any better for newbies, usually understanding of CSS is required...
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Jul 21 '05 #13
Ole

"Lauri Raittila" <la***@raittila.cjb.net> skrev i en meddelelse
news:MP************************@news.individual.ne t...
in comp.infosystems.www.authoring.stylesheets, Ole wrote:

I wouldn't recommend book about CSS hacks. There is no sence to learn
about CSS hacks, when you don't need them. And book will be outdated
soon.
And the above article is one of the worst on CSS hacks (though I have not
seen any better for newbies, usually understanding of CSS is required...


does that mean that a hack have to be changed when a new version browser
comes?

Ole
Jul 21 '05 #14
in comp.infosystems.www.authoring.stylesheets, Ole wrote:

"Lauri Raittila" <la***@raittila.cjb.net> skrev i en meddelelse
news:MP************************@news.individual.ne t...
in comp.infosystems.www.authoring.stylesheets, Ole wrote:

I wouldn't recommend book about CSS hacks. There is no sence to learn
about CSS hacks, when you don't need them. And book will be outdated
soon.
And the above article is one of the worst on CSS hacks (though I have not
seen any better for newbies, usually understanding of CSS is required...


does that mean that a hack have to be changed when a new version browser
comes?


Depends. If hack is well designed, it might not cause harm. But many
hacks have been broken in past. IE7 is next big question mark.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Jul 21 '05 #15

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

Similar topics

6
by: Richard Barnet | last post by:
Dear CSS gurus, My question regarding 'the cascade' is a simple one, but one that I haven't heard anyone talk about before: When cascading (for instance, when applying two linked stylesheets),...
16
by: Icarus | last post by:
Hi all, I need to use one class for IE and another class for all other browsers. Is this possible in the same style sheet? Here is the class for IE: input { font-family: Verdana, Arial,...
115
by: J | last post by:
I've run CSSCheck on my style sheets and I always get a warning similar to this: "font: bold 9pt/100% sans-serif Warning: Absolute length units should not generally be used on the Web ..." ...
2
by: Chris Sharman | last post by:
See http://services.ccagroup.co.uk/testform.htm Looks as intended in firefox, is valid (bulk of inputs centred in a div occupying the left half of the page). ie ignores the child selector,...
8
by: sajid | last post by:
The CSS 2.1 Specification describes how to sort a list of selectors in order of specificity, but it doesn't provide a method to calculate the specificity of a single selector in isolation. I've...
3
by: JakDaniel | last post by:
is it possible, create a selector as alias of another selector... (maybe) in another stylesheet file? ex: html page .... <link rel="stylesheet" type="text/css" href="style1.css" /> <link...
6
by: _googlepost | last post by:
I have some CSS that goes something like this: table.TableStyle {font-family: "Helvetica", "Ariel"; background- color:white; border-collapse:collapse;} table.TableStyle COLGROUP { background-...
5
by: Yuri Shtil | last post by:
I want the users be able to browse and select files on the server side. Is there any good free or not very expensive commercial javascript package I could use? -- Yuri.
14
by: AdamOnAccess | last post by:
I have an access form with a web browser control and I'm trying to enable it to resize with the form. The code causes the web browser control to shink and grow to the exact dimensions of the form,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.