?
Solved

css and RadioButtonList

Posted on 2004-11-10
3
Medium Priority
?
1,731 Views
Last Modified: 2008-01-09
hi

i have the following,

<asp:RadioButtonList id="viewType" runat="server" RepeatDirection="Horizontal">
    <asp:ListItem id="option1" runat="server" value="List Films" />
    <asp:ListItem id="option2" runat="server" value="List Books" />
</asp:RadioButtonList>

i want to add css styling to the text, but cant add a style to it, this is doing my head in, ive tried adding CssStyle="testText" to it but it dosnt change the text font or colour

this is the css

.testText{COLOR: #ffffff; font-weight: bold; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px;}


does anyone know what im doing wong

thanks in advance

stephen
0
Comment
Question by:stephencushen
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
lengreen earned 200 total points
ID: 12546769
Hi

What you are looking for is

<ASP:RADIOBUTTONLIST id="viewType" runat="server" repeatdirection="Horizontal" cssclass="testText">

Cheers

Len
0
 

Author Comment

by:stephencushen
ID: 12546829
heeemmm

yes coding while tired is a stupid idea, ive been stuck on that for a couple of hours, why the hell was i using cssstyle?

cheers
0
 
LVL 10

Expert Comment

by:lengreen
ID: 12546886
Tell me about it... its much easier sovling other peoples problems than your own :)

cheers

Len
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question