Is there a way, how to change ScaleLine text? When I choose 'nautical' units, miles are shown as nm instead of NM.
There is currently no way to customize the output of the ScaleLine control. You could write your own control, or modify the DOM element after it's rendered.
However, since all you want is for it to be uppercase, you could use CSS:
.ol-scale-line {
text-transform: uppercase;
}
Related
I have several thousand PDFs that I am using Powershell and iText7 to process, exporting the text of the PDFs to Excel. The PDFs are generated from HTML -- they are not coming from a fillable form. Some vital information is captured with "checkboxes" and "radio buttons" that are actually FontAwesome icons (\f14a for the checkbox, \f111 with a font-weight of 900 for the radio button). The icons are added to the HTML with CSS ::before markup. They show up fine in the PDF, but in my output they are unrecognized as characters (in the Powershell console they appear as small empty rectangles, and in Excel, as small rectangles with a question mark inside them).
Here is the CSS for the selected radio button in the original HTML:
input[type=radio]:checked + label.ReplaceWithIcon:before {
font-family: 'Font Awesome 5 Pro';
content: "\f111";
font-weight: 900;
}
Here is the CSS for the checkbox in the original HTML:
input[type=checkbox]:checked + label.ReplaceWithIcon:before {
font-family: 'Font Awesome 5 Pro';
content: "\f14a";
font-weight: 900;
}
Is there any way to detect which icon is being used? I don't need the icon to show up in the output -- I just need to know which one was detected. In addition, for the radio button one, I need to know what the font-weight is. (Selected is indicated by font-weight: 900 in the original HTML.)
Thanks to a comment by #mkl, I got this to work by matching on "\uf111" and "\uf14a".
I am trying to put two Nivo sliders on one page. Some of the attributes are different. So I have simply created two scripts for these attributes, "slider" and "slider2". That's no problem.
However, I want to make the title style a little different for the second slider. I noticed that the text style of the slide title is controlled by this style:
.nivo-caption p {
padding:8px;
margin:0;
color: #000;
font-size: 16px;
}
However, I don't see that css style called within my html. (When I look at the web page source code I see it but not when I'm actually looking at the code file itself.)
I'd love to simply create a new style for my second slider, something like:
.nivo-caption2 p {
margin:0;
color: #000;
font-size: 12px;
}
But I need to know how to actually call that within my html. Can anyone help? Thanks.
Actually, I figured it out. Since I have ids of "slide" and "slide2" for each slide show, I simply appended that to my new style and that worked.
Hi in Drupal 7 I am using autocomplete search. In search input it displays part of ajax loader animation all the time even when the input is not focused. Bug is marked with red square .
Any suggestions please why there is this bug. (I am using boostrap theme)
Thank you for help.
It's not a twitter bootstrap error.
See your drupal installation's misc/throbber.gif file. You will see that it's actually a sprite and when the ajax request is in progress, it changes its position to show the animated throbber.
You will need to create a new one and adjust CSS accordingly to workaround this issue. Your text field has a relatively higher length than this sprite's
Add the following CSS to your theme's css file. These styles are defined already, so you will only need to override them. See inline comments.
html.js input.form-autocomplete {
background-image: url("/misc/throbber.gif"); // Enter a new thribber image here.
background-position: 100% 2px;
background-repeat: no-repeat;
}
html.js input.throbbing {
background-position: 100% -18px; // Adjust this -18px to the height of your new throbber.
}
I need to wrap text around a user control. Specifically, I am displaying an image in a user control. Normally, the align="right" would handle this on an image byu itself. But, put inside a user control, it doesn't seem to flow. I already tried putting the control in a div but this didn't look right either.
In CSS:
float: right;
or
float: left;
should do it. I'd just add that CSS to the user control's surrounding DIV.
Hey guys I'm currently having trouble with my CSS linking. Basically I want the colour of my links to change when I hover over them, and click on them and such. But for some reason it is not working when I view it on a browser. Below is my HTML code and my CSS code, they are seperate files and are linked togather. Thanks in advance. (I apologise if the codes are not appearing correctly but it is all there)
EDIT: Don't worry its fixed now :D thanks for the help
from what I see, you don't have a:hover,a:vistied, or a:active defined anywhere, which is what controls the behavior you're looking for.
Are you coding by hand or using Dreamweaver as a WYSIWYG?
NOTE: This could be because the files aren't formatted well in your question, so Markdown could have dropped some characters from the display.
From what I can see, the CSS file isn't written correctly. I'm going to give one example for you which fits for the whole file:
content {
width: 510px;
float: left;
}
This snippet above looks for the <content> tag in the HTML, and when it finds that tag, it will give it a width of 510px and floats it to the left. The problem here is that there are no <content> tags in your HTML page OR in HTML 4.01 itself. What you need to do is change it to this:
.content {
width: 510px;
float: left;
}
By adding the '.' before 'content' in the CSS, it changes 'content' from <content> to finding a tag that has class="content" as an attribute.
Also, to get the <a> tags to change on hover, etc, use the pseudo-elements (pseudo-attributes?) of :hover, :active, and :visited, for when a user hovers over a link, clicks on a link, and has previously visited a link, respectively.
Example:
a {
color: blue;
}
a:hover {
color: red;
}
In this example, a link will display as blue unless the user has their mouse on the link.