css - why my text box is not showing up?
Tags: css,html,alignment
Problem :
On my website, section "Presse and Medias", I'd like a white square to appear a few px next to the video (on the right side) with the word "hello" in it. Unfortunately this is not working. I see the word hello, but not in a white square. Any idea what the issue is and how to fix it? Many thanks,
Here is my html:
<div class="section" id="medias">
<div class="center">
<iframe width="350" height="200" class="youtube-player" src="http://www.youtube.com/embed/qqXi8WmQ_WM" frameborder="0" allowfullscreen></iframe>
<div id="medias-txt"
<p>hello</p></div>
</div>
</div><!--END page4-->
And here is my css:
#medias-txt
{
background-color:#fff;
color:#000;
width:100px;
height:100px;
padding:10px;
float:right;
}
Solution :
You aren't closing your div tag
<div class="section" id="medias">
<div class="center">
<iframe width="350" height="200" class="youtube-player" src="http://www.youtube.com/embed/qqXi8WmQ_WM" frameborder="0" allowfullscreen></iframe>
<div id="medias-txt">
<p>hello</p></div>
</div>
</div><!--END page4-->
This should do the trick.
PS Love the video on that page :)
CSS Howto..
The problem, apparently, is that the encoding which you have declared (Shift_JIS) no longer matches the actual encoding used (probably UTF-8), and so the browser renders garbage. Either that, or...
Demo ... Source HTML <div class="box"> <button type="button" class="delete" ng-click="deleteModel(model)"> <span>×</span> </button> <div class="image"> <img ng-click="selectModel(model)" src="http://nemo-crack.org/uploads/posts/2014-04/1398165049_adobe-410x400.png"...
Researching I've found an answer to my question. We need to use the rotateY attribute for the -webkit-transform CSS property. .imageRotateHorizontal{ -moz-animation: spinHorizontal .8s infinite linear; -o-animation: spinHorizontal .8s infinite...
You need to get the scrollTop value of $(window) while scrolling, then compare it to each 'explanation' offset().top position to determine where the user has scrolled to. var $scales =...
you can not do this directly; You should use an image for this, or svg might do the trick but that's a hell of a lot more complicated and browsers...
That depends on where exactly you'd like to declare the resource. Normally, the only reason to programmatically declare them is that you've a custom UIComponent or Renderer which generates HTML...
I believe this is what you're looking for: https://jsfiddle.net/richardgirges/8m9qstg3/11/ We're saving a reference to the lastClicked div, and targeting it specifically when reset is hit. Like so: var $lastClicked =...
For best cross-browser compatibility I would suggest to cut the box into three pieces: Top and bottom pieces are not changing. The middle one should have 3px height and full...
Try this: .expanded a:hover + ul, .expanded ul:hover {display:block !important;z-index:99999;} .menu ul{position:absolute;} .menu li{float:left} .menu .menu a{width:100px} There's a ton of crazy css @imports on your site, hard to debug....
Use /* and */. <span class="color_dark" style="top:20px; /*font-size: 17px;*/ line-height: 0px;position: relative;">onbezorgd genieten van uw<br> haard of kachel</span> You can see that Google Chrome uses those too when disabling a...
Try this $(function(){ $(".s").on("focus",function() { $(".yellow").hide(); }); $(".s").on("blur",function() { $(".yellow").show(); }); }); .red, .blue, .green, .yellow { padding: 10px; border: 1px solid #f00; } .red{ background: red; } .blue{ background:...
One problem with the accepted answer is that the browser will have to load the content of all the tabs on page load. This may not be very good if...
Setting a width via % works just the same as setting with pixels. width: 35%; instead of width: 250px; There ARE ratios that people tend to use with wireframes that...
An alternative to using CSS transform properties is to give the carousel absolute positioning inside a wrapper div and manipulate the carousel's top property. Then you can use any easing...
#one{ background-color:green; color:white; height:40px; } #two{ background-color:red; color:white; height:40px; display:in-line; } #one:hover + #two { display:none; } <div id="main"> <div id="one"> <p>Hover to hide div below</p> </div> <div id="two">...
What happens is that aurelia skeleton-esnext uses SystemJS, and Aurelia-CLI uses RequireJS (SystemJS and WebPack will be supported on CLI in a near future). SystemJS and RequireJS are module loaders,...
Here's a modern solution using flexbox. Regardless of the height of the header the rest of the elements will stretch vertically to fill the remaining space. Here's the fiddle: http://jsfiddle.net/mggLY/1/....
The usual hex representation is simply the red, green and blue values converted to hexadecimal (base 16), one byte apiece. Your 255,255,255 would be ffffff and 0,0,0 would be 000000....
Since you are positioning your iframe, you should use position property and as you want your iframe appearing top right corner of the page then you should also use top...
A lot of jQuery functions have a callback function. The one that is particularly useful in this case is the callback of the .fadeOut() function. By changing the CSS in...
I guess you can use the adjacent selector to make it work: #testday input[type="checkbox"]:checked ~ #testtable .invalid { display:none; } snippet below: #testday input[type="checkbox"]:checked ~ #testtable .invalid { display: none;...
The "Problem" Here is a diagram, fom the w3c, showing what happens when a float overlaps borders of elements in the normal flow. This behavior of floating elements causes its...
If you're referring to this button: https://developers.facebook.com/docs/plugins/share-button/ All you have to do is target the same classes that Facebook is styling to override them. Example: This is what Facebook is...
$(".content").hover(function(){ $(this).find(".more").css("background-color", "#D0D0D0"); } ); ...
If you know how many 'tabs' you will have, then you can just divide 100 by that number, and set the width to be that percent. ie: width:20% for 5...
If someone suggests, don't #upper a {display:none !important;} as this introduce more issues in the future than it would sove immediately. #upper a {display:none;} would work unless there is a...
You have two typos in your HTML where you are failing to close the <span> tags with </span>. It should be: <p align="right"> <span class="edited-box">sfds</span> <span class="added-box">sfds</span> </p> This typo...
Apart from making sure the specific style is loaded after the one embedded in the site.master page, you can try a couple of things: 1. Check the css specificity of...
here is a solution who sweets your needs : Live Demo input:checked ~ img { border: 2px solid #f00; } label, img { position: relative; top: -80px; } label, input[type=radio]...
You simply have to remove the default padding-left that's automatically added to ul elements. Adding that style to your existing styles for the ul, you would get the following: #campaignDiv...