/    Sign up×
Community /Pin to ProfileBookmark

CSS in ASP.NET (Newbie help)

i’m really confused how to use the built-in methods, etc that are standard when adding a new .css to an asp.net app.

does anyone have any example .css files they could copy and paste please?

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@ray326Mar 13.2005 — ASPX is a server side technology. It has nothing to do with CSS, which happens entirely on the browser.
Copy linkTweet thisAlerts:
@TriumphMar 13.2005 — [i]Originally posted by ray326 [/i]

[B]ASPX is a server side technology. It has nothing to do with CSS, which happens entirely on the browser. [/B][/QUOTE]
Amen! You preach it, brothah! ?
Copy linkTweet thisAlerts:
@dogekidauthorMar 14.2005 — [i]Originally posted by ray326 [/i]

[B]ASPX is a server side technology. It has nothing to do with CSS, which happens entirely on the browser. [/B][/QUOTE]

i understand that much, however, if you've worked with asp.net, you'll understand that you can add .css files to your solution. it's working with those files that i'm confused about.

when you create such a file, you get a <Sheet.css> page generated for you that only contains:

[CODe]
body
{
}
[/code]


i'm hoping some asp.net person out there has an example of 1 of these files used in their app.

thanks!
Copy linkTweet thisAlerts:
@Tim_FinneganMar 15.2005 — Those files are just plain css files, like the ones that you can make with your favourite text editor.

As far as I know, Visual Studio .Net just brings you an integrated CSS editor, nothing more nothing less.

Just a bit more info: Almost every WebControl has a property called [b]CssClass[/b], which is finally rendered as the [i]class[/i] property of the native html control.
Copy linkTweet thisAlerts:
@ray326Mar 15.2005 — As Tim says, those are just CSS files and you use them accordingly. There's nothing special about the fact they're being used in conjunction with ASPX. Check the links in my sig if you need to learn CSS.
×

Success!

Help @dogekid spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...