How do I apply CSS style to ASCII character
Tags: html,css-font-weight
Problem :
I'd like to reduce the weight of a my ascii degree character °
in my html document. Does anybody know how?
HTML:
<html>
<body>
<table>
<tr>
<td>
<div style="position:absolute; top: 70; right: 0;">
72
<span>°</span>
F
</div>
</td>
</tr>
</table>
</body>
</html>
CSS:
body {
height: 100%;
font-weight: 400;
color: white;
background-color: #000000;
overflow: hidden;
}
div{
font-size: 80px;
margin: 2px;
padding: 2px;
}
@font-face {
font-family: aFont;
src: url(ostrich-rounded-webfont.ttf);
}
.fontclass{
font-family: aFont, Helvetica;
color: #FFFFFF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
div span{
font-weight:1;
font-size:1px;
}
Solution :
Try like this: Demo
CSS:
p {
font-weight:bold;
}
p span {
font-weight:100;
font-size:11px;
}
HTML:
<p>Test test Test test Test test <span> °</span> Test test Test test Test test Test test </p>
Edit: Updated demo
CSS:
p, div{
font-weight:bold;
}
p span, div span {
font-weight:100;
font-size:11px;
}
HTML:
<div stile="position:absolute; top:70; right:0;"> 89 <span> °</span> </div>
CSS Howto..
li:hover{ -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomright: 0px; -moz-border-radius-bottomleft: 0px; -webkit-border-radius: 10px 10px 0px 0px; border-radius: 10px 10px 0px 0px; background-color: #000; } li{ width: 50px; height: 50px; margin: 30px; float:...
i did a google search on 'google-visualization-table-table' and came across this page. It had multiple examples of table css properties, ie.: .google-visualization-table-table { font-family: arial, helvetica; font-size: 10pt; cursor: default;...
Use a object where you define the styles as argument for css() , e.g.: $('#box').css({'background':'orange', 'width':'200px', height:'100px'}); ...
You can add a css class based on id dynamically as follows: document.getElementById('idOfElement').className = 'newClassName'; or using classList document.getElementById('idOfElement').classList.add('newClassName'); Alternatively you can use other DOM methods like querySelector getElementsByClassName getElementsByTagName...
Add an ID to the anchor echo '<a href="#" id="link_blue">Link</a>'; Then add an event handler $('#link_blue').on('click', function() { $('.blue').toggleClass('hover'); }); ...
You can use animate() $('#content').animate({'margin-top': headerTop + 'px'}, 700, 'easeOutExpo'); check the DEMO...
Supposing you are using bootstrap, just set margin-bottom: 0 for the .navbar. You might want to remove borders as well. See fiddle: https://jsfiddle.net/yyw99nky/...
The problem you are having is that transition does not work the way you think. #innerMenu { height:0%; width:0%; position:relative; overflow:hidden; -webkit-transition: height 1s linear 3s; transition: height 3s linear...
You could do this background: url(repeat_bg.png) repeat-y, url(repeat_bg_right_side.png) top right repeat-y; ...
In your header replace <link rel="stylesheet" href="cv.css"> with <?php if(isset($_GET['auth'])){ ?> <link rel="stylesheet" href="cv.css"> <?php } else { ?> <link rel="stylesheet" href="cv1.css"> <?php } ?> ...
if you set z-index:1; to parent it should allow pseudo-element to be under it without being underneath body. Overflow:hidden, will cut things off . position:relative; can be used to set...
The answer from @Nambi Narayanan looks very wrong and badly implemented. I advise you to use the following block: {block name=head} <link href="/css/mypage.css" rel="stylesheet" type="text/css"/> {/block} or you can just...
you can comment out white-space: nowrap; from .dl-horizontal dt block if you want to wrap content in all the dt if you want to wrap content for a single dt...
Here is a simplified example of what you're looking for: DEMO HTML <div class="title">SCROLL DOWN DUDE</div> <div class="curtain"></div> CSS body { padding:0; margin:0; padding-bottom: 100px; } .title { line-height:50px; color:#212121;...
Create a CSS rule and it will apply to any object that matches the selector even if it's created dynamically. #send_button {opacity: 0.2;} Or, make a CSS rule with the...
You have to use the CSSOM, which allows you (among the other things) to manipulate the stylesheets loaded in a document. First of all, you need a stylesheet loaded in...
I would've certainly closed your question as it lacks the efforts by you but as you said that you don't know how to achieve that at all, so thought to...
You are using a deprecated method which doesn't exist in the version of jQuery that you posted in the fiddle. Switch from live() to on() http://jsfiddle.net/f9FDs/4/ Please note that if...
The problem isn't the input but in it's td. Look: <td style="border-top-left-radius:5px; border-top-right-radius:5px; border-bottom-left-radius:5px; border-bottom-right-radius:5px;"> Here (above) is defined the border radius. And here (below) the border color: .formTable tr,...
With css-floats only you are not going to get the smooth animation you see on those sites, because the elements just snap to the next row. But there's quite a...
Put nav and footer outside of wrapper. and: #wrapper { width:1000px; margin:2px auto 2px auto; } footer, #footer, .footer, nav .nav, #nav /* etc - whatever you're using */ {...
Set the <router-view to have display: flex, and set flex:1 for the #make-full-height. This way #make-full-height will fill it's container since there are no other children. .full-screen { height: 100vh;...
You can find elements with xpath, or css. I use Selenium in Java (Eclipse) with JUnit, and here are an example code to find elements with xpath: @Test public void...
You made it much more complicated than it needs to be: #content a {} ...
You can use a common class for all the elements. note that elements can have multiple classes. then you can use like, $(".commonClass").css("background-color", "#abc"); Or you can use comma separated...
$(function(){ $('.item').click(function() { var $this = $(this); $('.selected').removeClass('selected'); $this.addClass('selected'); moveBio(); }); function moveBio() { var $bio = $(".bio"); var itemsPerRow = 0; $bio.hide(); // hide so doesn't affect calculations...
For that you need to use Less or Sass witch are CSS Dynamic languages. here's some comparison between both technologies...
you can use background-image and background-position amd background-size .img_thumb_holder { width:192px; height:192px; background-size: 300px; background-position: center center; } and <div class="img_thumb_holder float-l" style="background-image: url(....)"> </div> ...
First of all, please don't do this, it's a sure fire way of driving people away from your site! Having said that, you can achieve what you're looking to do...
Blockquote Two things are happening here. You are not using the container class properly. You are trying to override Bootstrap's CSS for the container class Bootstrap uses a grid...