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

Style sheets, Please Help..

Hi Guys,

Where do we specify style sheets link, so that it is used through the
asp.net web-application?

Will wait for a useful response,

Thanks,

I.A..
Nov 19 '05 #1
3 987
Well,

You have to include it in the head section of you page like this:
<link rel="stylesheet" type="text/css" href="style.css" />

However, if you want to do this once. You could create a common base class
that all of your pages inherit from. Then, in your base class write out all
of the common html, ie. external style sheet declaration. It takes a little
extra work up front, which I feel is un-necessary. So, what I do, I just
include my stylesheet link reference on every page.

"Irfan Akram" <Ir********@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
Hi Guys,

Where do we specify style sheets link, so that it is used through the
asp.net web-application?

Will wait for a useful response,

Thanks,

I.A..

Nov 19 '05 #2

"Tampa.NET Koder" <an*******@microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Well,

You have to include it in the head section of you page like this:
<link rel="stylesheet" type="text/css" href="style.css" />

However, if you want to do this once. You could create a common base class that all of your pages inherit from. Then, in your base class write out all of the common html, ie. external style sheet declaration. It takes a little extra work up front, which I feel is un-necessary. So, what I do, I just
include my stylesheet link reference on every page.

"Irfan Akram" <Ir********@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
Hi Guys,

Where do we specify style sheets link, so that it is used through the
asp.net web-application?

Will wait for a useful response,

Thanks,

I.A..


Another way is to create a control with the style sheet link in it and add
the control to every page. That way if you need to change the style sheet
name you can change it in one place. This is handy if you want to force a
new style sheet without having to go through every page.

Mike
Nov 19 '05 #3
slamz
just place eg

<LINK href="CSS_NAME.css" type="text/css" rel="stylesheet">

in the <HEAD></HEAD> tags of ur page
i hope that wld do the job
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 19 '05 #4

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

Similar topics

16
by: Geoff Cox | last post by:
Hello, I publish some web pages using large fonts and would like to give the user the opportunity to print the pages using a smaller font. I believe that this is possible using different style...
3
by: Phil Thompson | last post by:
does it matter in which order i place different style sheets i.e. <link rel="stylesheet" type="text/css" media="screen" href="style/screen.css" /> <link rel="stylesheet" type="text/css"...
10
by: Charles Crume | last post by:
Hello; I'm new here, so please excuse me if this posting is not appropriate. I have a basic style sheet "sheet1" for all my pages, and a secondary style sheet "sheet2" that overrides a couple...
12
by: relaxedrob | last post by:
Hi All! I have a page with with the following style information: <link rel="stylesheet" type="text/css" href="/eEmployment/eTech.css" /> <style type="text/css"> DIV.Application {...
12
by: Jarno Suni | last post by:
I want a device to use styles given for media type handheld and not the styles given for media type screen, if the device supports media types handheld and screen. Is it possible without writing...
9
by: Radium | last post by:
Cascading Style Sheet is an extreme hazard to your privacy. It allows others on the internet to see your monitor and files. It allows them to copy images on your monitor to their computers. It...
1
by: mscertified | last post by:
Can anyone explain how references to style sheets work, I've exhausted looking in help, its all so confusing. I have three style sheets in my project under 'Style Sheets'. Only the first style...
5
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a machine running IIS 6.0. I just replaced the web.config and several aspx pages in the application and now the style sheets are not working. the images from the themes work but not the css...
1
by: ravichobey | last post by:
Hi all, I am currently writing a C based CGI scripting.When i am not using any style sheets in my program,it compiles and executes properly. But when i am using style sheets,it is giving...
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: 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:
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...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.