This seems like it would be an easy fix with a Content Editor Web Part to modify the css of the page’s Web Parts. The underline I mean is the long line that leads to the dropdown arrow where the Modify, minimize, close, etc. options are. I have tried this code with no visible results:
<style>
ms-standardheader {text-decoration:none;}
</style>
You need to read up about CSS selectors.
A CSS rule is composed of two parts: a selector and a declaration block.
Generally, they look something like this:
Your problem is with the selector, and to understand your error I’ll have to explain some basic selector syntax.
In the selector you can ‘target’ HTML elements with styles using various constructs:
Target by Tag Name
The simplest is targeting by Tag Name. In this case use the tag name of the element targetted with white space on both sides:
Now all
<p>elements will be affected by the above rule.Target by Id
If the element you are targeting has an
idattribute you can target byidby prefixing with an octothorpe#:Now the element with
id="p"(no matter what the tag name) will be affected.Target by Class Name
If the element you are targeting has a
classattribute you can target by class name by prefixing with a period.:Now the elements with
class="p"(no matter what the tag name) will be affected. Note that an element can have more than one class name, separated by spaces, soclass="p x"is also affected.Your Rule Doesn’t Make Sense
So your rule doesn’t work first and foremost because is doesn’t make sense 😉
In the absence of a period
.or an octothorpe#this targets by tag name. But<ms-standardheader>elements don’t exist, so it has no effect.Your Rule Is Also The Wrong Rule
You’re also trying to style the wrong element, so let’s look at the Web Part to style. I assume you’re trying to remove the line I’ve pointed out with the red rectangle:
This line is not actually an underline, but is instead a border-bottom from a
<td>element. The rule which creates this underline is on line 2664(ish) of_layouts/1033/styles/core.cssand looks a little like this…Try this in another CSS file:
Adding the
html bodyincreases the specificity of your rule so it will take precedence over the rule incore.css.