Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

css selections

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rodchar - 20 Mar 2008 01:21 GMT
hey all,
i have a 4x4 table where each cell has a cssClass assigned. there's a range
of cells in a column that i'd like to align center. i know i can get each
cell and do align center on it but i was wondering if there was other ways to
get to that range of cells and set its attributes?

thanks,
rodchar
Anthony Jones - 20 Mar 2008 09:28 GMT
> hey all,
> i have a 4x4 table where each cell has a cssClass assigned. there's a range
> of cells in a column that i'd like to align center. i know i can get each
> cell and do align center on it but i was wondering if there was other ways to
> get to that range of cells and set its attributes?

In order for a CSS selector to pick out any set of elements there must be
something about them that indicates they belong to the selection.

If you want to apply a style to only a subset of cells that is neither a
whole row or column you will need to apply an additional class name (note
the class attribute in HTML can contain multiple names) to the cells that
require additional formatting.

Signature

Anthony Jones - MVP ASP/ASP.NET

rodchar - 21 Mar 2008 04:13 GMT
thanks Anthony for the help, i didn't know that.
rod.

> > hey all,
> > i have a 4x4 table where each cell has a cssClass assigned. there's a
[quoted text clipped - 11 lines]
> the class attribute in HTML can contain multiple names) to the cells that
> require additional formatting.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.