Reuse of design

liunx

Guest
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.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 startThanks for answering....
Of course I am learning, but I thought on this forum I could get some answers, so learning is fast.

Anybody ?

Ger.Use link or asp include to put the same style sheet on every page.Thank you for advising.
I have in my asp-page already this link: <LINK href=http://www.webdeveloper.com/forum/archive/index.php/"xxxx.css" type="text/css" rel="stylesheet">.

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:

<DIV style='DISPLAY: inline; (etcetera) class="LBL">TEXT</DIV>In the xxxx.css file I have the following code:
.LBL {font-family:Verdana; color:red}

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.put double quotes and close them for your style attribute, and write your tags lowercase!If you have .LBL {font-family:Verdana;color:red} in your stylesheet and you have <div class="LBL">TEXT</div> in your HTML then it should work. A better style would be .LBL {font-family:Verdana,sans-serif;color:#f00} 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?<DIV style='DISPLAY: inline; (etcetera) class="LBL">TEXT</DIV>In the xxxx.css file I have the following code:
.LBL {font-family:Verdana; color:red}


REgards, Ger.

because of the single quote(s) maybe?Use link or asp include to put the same style sheet on every page.
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.I suppose u have the stylesheet file in the same directory where the pages are?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 <!-- m --><a class="postlink" href="http://www.devarticles.com/c/a/HTML/Using-SSI-to-Boost-Efficiency">http://www.devarticles.com/c/a/HTML/Usi ... Efficiency</a><!-- m -->
and implemented a xxx.shtml file. That works nice.

Hope this helps others too,

Thank you all for helping, Ger. :D
 
Back
Top