- This topic is empty.
-
AuthorPosts
-
September 8, 2014 at 9:37 pm #182304
rory
ParticipantHi,
I am trying to edit text color on a website and can usually do this easily. The problem I am having is that I cannot stop the changes affecting other text on the page. I think this issue is caused by bootstrap……..so i am looking for help to target only the text I want to change.
really appreciate if someone can help me with this.
cheers
rorySeptember 8, 2014 at 10:01 pm #182306chrisburton
ParticipantLink? Reduced test case? Anything?
September 8, 2014 at 10:08 pm #182307rory
Participanthi chris
thanks a lot for your reply.
can I send you the info by email?
cheers
rorySeptember 8, 2014 at 10:39 pm #182308chrisburton
Participant@rory Hi. Why not here? Your question may help others.
September 8, 2014 at 11:01 pm #182310rory
Participantok ….well I am trying to integrate whmcs into a site that will sell domains,hosting and web services. The site is not completed but is live. In the editing of the whmcs order pages i have been caught out by changing text colors to match the main site.
If you look at the pages
https://www.kantoninternational.com/billing/supporttickets.php
or
https://www.kantoninternational.com/billing/submitticket.php
You cannot read a lot of text until you mouse over it but when I change it with firebug it also changes the main menu text. So I need the trick to write a little css to target just the text that needs to be changed.September 8, 2014 at 11:07 pm #182311chrisburton
ParticipantYou’re targeting all anchor elements (
<a>
). You can simply add the parent element before the anchor in CSS.So instead of
a {color: blue;}
which targets every link:
You can do
.rememberme a {color: blue;}
This only targets the links within a class of ‘rememberme’ (
<div class="rememberme">
)September 8, 2014 at 11:39 pm #182312rory
Participantthanks chris.
I do not have a lot of experience with this so appreciate your assistance. Do I have to add that class
(<
div>) and where should it be added.
rorySeptember 9, 2014 at 6:09 am #182329chrisburton
ParticipantSeptember 9, 2014 at 11:40 am #182362nigelc
ParticipantYou could target the nav links by using:
.navbar ul li a{color:white;}
and then set the color value for the other links to blue or whatever:
a{color:blue;}
September 9, 2014 at 9:17 pm #182463rory
Participanthey nigel
thanks……that worked really well but leads to another problem because it caused all the drop down menus to be white and they are on a white background.
What would I need to write to make the drop down menu to be a different color or I could write something to make the drop down container blue background
Thanks a lot for your help -
AuthorPosts
- The forum ‘Design’ is closed to new topics and replies.