Is there any way in asp.net 2.0 to say if this specific browser views my
site give them a CSS sheet that is specific for that browser?
like IE6 get its own, FF get its own, IE7 gets the one FF uses... something
like that... this is of course... for browser compatability
btw I am using ASP.NET 2.0's theme system for all my CSS right now... 3 1916
In article <#Q*************@TK2MSFTNGP02.phx.gbl>, Smokey Grindle
<no****@dontspamme.com> writes Is there any way in asp.net 2.0 to say if this specific browser views my site give them a CSS sheet that is specific for that browser?
Don't think so. One of the (few) drawbacks to themes is the lack of
control over which stylesheet files are served. Basically, it's all or
nothing.
like IE6 get its own, FF get its own, IE7 gets the one FF uses... something like that... this is of course... for browser compatability
This is of course, bad CSS design. You should aim for one CSS file for
all browsers. You can include hacks and filters if you need to send
specific CSS to specific browsers, but this is a last resort and should
only be used if you are really, really certain that the effect cannot be
achieved without. It almost always can unless you are doing very
advanced CSS.
HTH
--
Alan Silver
(anything added below this line is nothing to do with me)
Make the text that contains the css filename a generic html control, with
the runat="server" name value pair, so it can be dynamicly set.
You may like to consider browser capability files, and control adapters.
Martin
"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:Uj**************@nospamthankyou.spam... In article <#Q*************@TK2MSFTNGP02.phx.gbl>, Smokey Grindle <no****@dontspamme.com> writesIs there any way in asp.net 2.0 to say if this specific browser views my site give them a CSS sheet that is specific for that browser?
Don't think so. One of the (few) drawbacks to themes is the lack of control over which stylesheet files are served. Basically, it's all or nothing.
like IE6 get its own, FF get its own, IE7 gets the one FF uses... something like that... this is of course... for browser compatability
This is of course, bad CSS design. You should aim for one CSS file for all browsers. You can include hacks and filters if you need to send specific CSS to specific browsers, but this is a last resort and should only be used if you are really, really certain that the effect cannot be achieved without. It almost always can unless you are doing very advanced CSS.
HTH
-- Alan Silver (anything added below this line is nothing to do with me)
In article <uF**************@TK2MSFTNGP03.phx.gbl>, Martin <x@y.z>
writes Make the text that contains the css filename a generic html control, with the runat="server" name value pair, so it can be dynamicly set.
Why bother, themes do all that for you.
You may like to consider browser capability files, and control adapters.
He would still be better off considering better CSS!! No amount of
hacking is going to cover up for good coding.
Martin
"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message news:Uj**************@nospamthankyou.spam... In article <#Q*************@TK2MSFTNGP02.phx.gbl>, Smokey Grindle <no****@dontspamme.com> writesIs there any way in asp.net 2.0 to say if this specific browser views my site give them a CSS sheet that is specific for that browser?
Don't think so. One of the (few) drawbacks to themes is the lack of control over which stylesheet files are served. Basically, it's all or nothing.
like IE6 get its own, FF get its own, IE7 gets the one FF uses... something like that... this is of course... for browser compatability
This is of course, bad CSS design. You should aim for one CSS file for all browsers. You can include hacks and filters if you need to send specific CSS to specific browsers, but this is a last resort and should only be used if you are really, really certain that the effect cannot be achieved without. It almost always can unless you are doing very advanced CSS.
HTH
-- Alan Silver (anything added below this line is nothing to do with me)
--
Alan Silver
(anything added below this line is nothing to do with me) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: redneon |
last post by:
I've written a simple application which connects to an FTP server and
recursively lists the contents of the directories in this server in a
ListBox. What I'm wanting to do is change the ListBox and...
|
by: Paul W |
last post by:
Hi - can someone point me to info on the issues/resolutions of supporting
the safari browser?
To help me understand, if I was developing pages in say FrontPage, what
attributes would I set for...
|
by: |
last post by:
I like the "view in browser" feature of vs.net: right click from an aspx
page, and preview a working version of the page.
I don't like how this can't be launched from the pages' codebehind. The...
|
by: Alan M Dunsmuir |
last post by:
What is the command (in Windows Forms VB.NET) which will cause the
subject computer's default browser to launch, and display a specified
Web page?
--
Alan M Dunsmuir
|
by: Smokey Grindle |
last post by:
Is there any way in asp.net 2.0 to say if this specific browser views my
site give them a CSS sheet that is specific for that browser?
like IE6 get its own, FF get its own, IE7 gets the one FF...
|
by: igotyourdotnet |
last post by:
I have a web app that I want to make the pages render correctly based on what
type of browser is connected. How can I determine if the browser is the
desktop IE version or a handheld device version?
|
by: Laurent ARNAL |
last post by:
Hi,
I would like to know if there is a way to remove/disable .php handler
when the request come from a specific Browser.
I ask this because I use dreamweaver / webdav to edit my .php files....
|
by: saggydel |
last post by:
I have 3 web application these all are independent to each other.
1 web application have .aspx, .aspx.cs, web.config, .dll and some other
Supporting files. I want to make a common setup of all 3...
|
by: remi |
last post by:
Hi,
I would like to write a script that will load a js file according to the
browser used.
Here is the suggested code :
****
function detectBrowser()
{
var browser=navigator.appName;
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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
|
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...
| |