/    Sign up×
Community /Pin to ProfileBookmark

Reuse of design

Hi all,

I am very new with CSS (but learning !), and my question is as follows:
Developing visual basic.net apps there are apps with a fixed look. This look
consists of a few labels with the same text and colors.

I think it must be possible to develop this within one unit in CSS in a certain selector and call this selector from every asp-page, so every page looks the same.

The problem is, I tried, tried and tried, but cannot figure it out. A little help in the right direction is appreciated,

regards, Ger.

to post a comment
CSS

10 Comments(s)

Copy linkTweet thisAlerts:
@SiddanSep 11.2005 — sure it can form every page so it all looks the same

you just need the basic learning of css

make a search for it at google should be a good start
Copy linkTweet thisAlerts:
@GerEieltsauthorSep 11.2005 — Thanks for answering....

Of course I am learning, but I thought on this forum I could get some answers, so learning is fast.

Anybody ?

Ger.
Copy linkTweet thisAlerts:
@ray326Sep 11.2005 — Use link or asp include to put the same style sheet on every page.
Copy linkTweet thisAlerts:
@GerEieltsauthorSep 11.2005 — Thank you for advising.

I have in my asp-page already this link: [B]<LINK href="xxxx.css" type="text/css" rel="stylesheet">[/B].

In the same code I have:

<DIV style="DISPLAY: inline; (and some other attributes). On this point I added "class="LBL", so the whole code is:

[B]<DIV style='DISPLAY: inline; (etcetera) class="LBL">TEXT</DIV>[/B]In the xxxx.css file I have the following code:

[B].LBL {font-family:Verdana; color:red}[/B]

When I run the asp-page, nothing happens with "TEXT".

Now you know that I have to know a solution for this problem, before I can go further.

REgards, Ger.
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYSep 11.2005 — put double quotes and close them for your style attribute, and write your tags lowercase!
Copy linkTweet thisAlerts:
@ray326Sep 12.2005 — If you have [b].LBL {font-family:Verdana;color:red}[/b] in your stylesheet and you have [b]<div class="LBL">TEXT</div>[/b] in your HTML then it should work. A better style would be [b].LBL {font-family:Verdana,sans-serif;color:#f00}[/b] and the TEXT shouldn't really be bare but what you have should work. Does it work for one page if you put the style into the head in <style> tags?
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYSep 12.2005 — 
[B]<DIV style=[COLOR=Red]'[/COLOR]DISPLAY: inline; (etcetera) class="LBL">TEXT</DIV>[/B]In the xxxx.css file I have the following code:

[B].LBL {font-family:Verdana; color:red}[/B]


REgards, Ger.[/QUOTE]


because of the single quote(s) maybe?
Copy linkTweet thisAlerts:
@GerEieltsauthorSep 12.2005 — Use link or asp include to put the same style sheet on every page.[/QUOTE]
Thank you for advice... I will study that possibility (using include I mean)

LiLcRaZyFuZzY: The single quote was a typing fault (sorry)

Ray326: it does work with the style in the HEAD-section within the page !!!

But not with the stylesheet ?

Regards, Ger.
Copy linkTweet thisAlerts:
@SiddanSep 12.2005 — I suppose u have the stylesheet file in the same directory where the pages are?
Copy linkTweet thisAlerts:
@GerEieltsauthorSep 12.2005 — Hi guys....

Yes Siddan, I have the stylesheet in the same directory with the rest of the application-files.

I studied quite a good tutorial at http://www.devarticles.com/c/a/HTML/Using-SSI-to-Boost-Efficiency

and implemented a xxx.shtml file. That works nice.

Hope this helps others too,

Thank you all for helping, Ger. ?
×

Success!

Help @GerEielts 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.16,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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