473,662 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using stylesheets

How do I set up in a style sheet what format I want to use for various
controls, such as a drop down list? The format is not following the body
font, nor tables (which the ddl's are in), nor even a grid, which some of
them are in.

Thanks.
Nov 19 '05 #1
2 1024
Create a class in CSS.
Use that class when declaring the control using CSSClass property.

Can you elaborate on what do you mean when you say "Format is not
following the body font nor tables". Can you show us a live page...
that may help in better analysis.
--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------

Nov 19 '05 #2
Thanks, that helps, some. I have a css sheet, below. I want everything to
follow the same format as the body, but find I have to do, as you suggested,
create a class, such as the DDL for a drop down list, and a LABEL for
labels, but now I have to go to every control in the entire application and
enter "DLL" under the cssclass property for each one? How can I do this
globally so that ALL drop down lists follow the same format as Body, or even
follow the DLL class without changing the property of 50 million drop down
lists? I hope that makes sense & thanks for your help!

/* Default CSS Stylesheet for a new Web Application project */

BODY
{
font-size: 8pt;
color: black;
line-height: 11pt;
font-family: 'Microsoft Sans Serif';
font-weight: normal;
word-spacing: normal;
text-transform: none;
letter-spacing: normal;
}

..DDL
{
font-size: 8pt;
color: black;
line-height: 11pt;
font-family: 'Microsoft Sans Serif';

}
..LABELS
{
font-size: 10pt;
color: black;
line-height: 11pt;
font-weight: bolder;
font-family: 'Microsoft Sans Serif';

}

"MasterGaur av" <ga**********@g mail.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Create a class in CSS.
Use that class when declaring the control using CSSClass property.

Can you elaborate on what do you mean when you say "Format is not
following the body font nor tables". Can you show us a live page...
that may help in better analysis.
--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------

Nov 19 '05 #3

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

Similar topics

4
3783
by: steve | last post by:
I'm new to XML, so pardon the stupid question. I've looked thru several books with not luck. All I want to do is associate one xml file with multiple xsl stylesheets. For example, if the user clicks on Button A, I want to use xsl stylesheeet A to display the xml data in a browser. If he clicks button B, then I want to use stylesheet B. I would think that this would be a very common thing to do, but maybe i'm missing something big. ...
3
4063
by: jason baumunk | last post by:
I author applications in php which use external stylesheets. When viewed through ie 6, netscape 6, et al. occassionally the stylesheets will not load or be applied. Has anybody encountered this and found a fix/workaround so that the stylesheets are verified as having been loaded/applied? I'm running apache and the external stylesheets are actually php files that serve dynamic stylesheets(ie, site.css.php......I don't suspect that this...
13
2095
by: Toby A Inkster | last post by:
www.authoring.stylesheets] For ages I have provided links to alternate stylesheets from my pages as per W3C recommendations: <link rel="stylesheet" href="baz" type="text/css" title="Baz" media="screen,projection" /> <link rel="alternate stylesheet" href="foo" type="text/css" title="Foo" media="screen,projection" /> <link rel="alternate stylesheet" href="bar" type="text/css" title="Bar"
2
1748
by: Anna | last post by:
Hi all. I want to create a noframes version of a certain page (not written by me), that has three frames, each loading a page with few external stylesheets. If I copy the content of each framed page into a div on the noframes page, and put all the external links to stylesheets in the head, different styles
1
3983
by: jbj | last post by:
I am trying to make a javascript function that can rewrite javascript rules dynamically (no, not the style tag of an individual element, but the actual rule in the <head> portion of the document). I have this code working in Mozilla (so I imagine Netscape browsers) but it gives me an error with IE. A few questions about it: First, here is my current code: <code> function expand(show)
5
1342
by: Richard L Rosenheim | last post by:
I need to create some XML stylesheets to transform some XML data into HTML pages. So, I'm looking to improve my understanding of XML stylesheets. I do have a book, "Professional Visual Basic 6 XML" which has a chapter on stylesheets, but I'm finding it a little hard to understand. I also found this web tutorial: http://www.oneworld.org/thinktank/iktools/xmltutorial/xml_stylesheets.html which I'm working my through. As a Google...
0
2231
by: Atara | last post by:
Our application was build with VS 2003. I have tried to run it on a computer with .Net 2.0 (but without .Net 1.1 , as it should be used) and I got the following error - System.InvalidCastException: Unable to cast COM object of type 'mshtml.HTMLBodyClass' to class type ''. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type....
5
2024
by: Gardar | last post by:
I have a .net webservice, developed with c++ managed extensions. The websrvice returns an xml-document with a reference to a server side xml-stylesheet in the format <?xml-stylesheet href = 'StyleSheet.xsl' type = 'text/xsl'?> This allows the client to retrieve the stylesheet for rendering the xml, if needed. When I test this with IE it detects the stylesheet reference and tries to get the stylesheet file with the following "GET"
9
2494
by: johkar | last post by:
I need some browser implementation clarification. In the below example, the alternate stylesheet could be invoked by user agents that support alternate stylesheets or by script. Are there any browsers that don't recognize "alternate stylesheet" as a value of the rel attribute and just implement it automatically thus overriding sheet2.css? Just need to know what I need to worry about. <link href="sheet1.css" rel="stylesheet"...
2
1361
Jezternz
by: Jezternz | last post by:
OK. I have made a function here that will suposedly go down the stylesheet and change particular properties. However I want to be able to make the property name defined when the function is called. Function: function changeRule(theNumber, property, value) { var theRules = new Array(); if (document.styleSheets.cssRules) { theRules = document.styleSheets.cssRules; } else if (document.styleSheets.rules) {
0
8343
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6185
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.