Solved

Trying to modify links within a Custom lIst web part on a homepage. I'm trying to changer their hyperlink colors.

Posted on 2015-01-20
1
99 Views
Last Modified: 2015-03-31
I have used.

ms-listviewtable ms-basictable td.ms-vb2 a, a:link, a:visited {
color: #ffffff !important;
padding-left:10px;
}

Open in new window

''It works but it effect every link one on the page.
I used FG12 and Firebug to isolate the calss but it;s some table with some long GUID ID.
Is there a way to isolate the css just to that imported APP Part with a Custom Lis it in.

Thank you in advance.
0
Comment
Question by:colonelblue
1 Comment
 
LVL 2

Accepted Solution

by:
kaustic earned 500 total points
ID: 40563626
Yep love the nested classes. You may end up using SharePoint Designer and a Data View Web Part. If you've never done it you will be surprised how easy it will be to style your stuff.

Alternatively you could find a pattern unique to that web part. You can access the buried stuff with multiple classes using a single selector.  Something like this:

.ms-listviewtable.ms-basictable td.ms-vb2 a, a:link, a:visited {
color: #ffffff !important;
padding-left:10px;
}

Note that you are joining the two classes with a period. If you do it right you shouldn't need the !important.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 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