How To Move A DIV Element A Little Towards The Top
Tags: html,css,blogger
Problem :
I have an issue with the home-link image that I've coded for my hovering navigation bar. The URL to my blog is as follows : http://www.blankesque.com. I would ideally like the image to appear in-line with the tabs text that is beside it however no matter what I do I cant seem to move the "home" icon slightly up. I have tried to play about with padding and margin values but to no avail. I only need to move the image approximately 15px towards the top but I cant figure out how to go about it. I have included the html and css coding below :
#wctopdropcont {
width:100%;
height:45px;
display:block;
padding: 5.5px 0 0 0;
z-index:100;
top:-2px;
left: 0px;
position:fixed;
background:#f8f8f8;
opacity: 0.9;
filter: alpha(opacity=90);
}
</style>
<div id='wctopdropcont'>
<ul>
<li><a href='http://www.blankesque.com'><img alt='Home' height='30px' src='http://i1379.photobucket.com/albums/ah140/mynamesiram/Mobile%20Uploads/520FDB25-EAD9-4BB0-B621-B1BFE3B558A9_zpsua6eoor2.gif' width='30px'/></a></li>
</ul></div>
Solution :
Don't use any margins and stuff.
The problem is you have padding on your img.
set padding: 0; only to on the first li and it will be fine..
#wctopdropnav li:first-child { padding: 0; }
CSS Howto..
Since you want to change multiple elements I would set the click on the ".message-background" and toggle a class there that effects all of the css within it. Javascript: $(".message-background").click(function()...
Here you go: codepen.io. You just need replace classes contact and contactbg. And cut man on image separately with no background to another div with position:absolute.
you seem to be using relative width sizes, ie 100%. instead try using absolute widths ie 500px; alternatively, try setting a width for your container. .span3.field{ width:500px; background-color: rgb(96, 211,...
Added a generally accepted version of clearfix, and removed a lot of positioning. The big thing is your widths were 15% + 85% = 100% + 3px for border, so...
CSS Styling is a GTK3 feature. GTK# for GTK3 is not released as stable yet. Xamarin (the main force behind mono) have publicly announced that their product (Xamarin Studio/Mono Develop)...
If you want to achieve this in a server-side event, you'll need to add the runat="server" attribute to your <div> element, and it will need an id attribute. This will...
Add below lines @media screen and (min-width: 1040px) { #logo.full { float:left !important; } } to your theme css file through FTP /wp-content/themes/urban-bold/style.css or from Admin area > Design menu...
Close all the link tags with </a>. For example change <td><h6><a href="/mobile">Mobile</h6></td> to <td><h6><a href="/mobile">Mobile</a></h6></td> and the rest of all links...
Actually it's very simple: .tab-caption { position: absolute; /* width: 100%; */ /* (remove this) width before rotation! */ top: 50%; height: 2px; /* actual text will overlap! */ margin-top:...
You aren't passing in a value so the code isn't going to change it back for you. The code you need is: $('#message2').draggable({handle: "#draghand", containment: "#drag_border", scroll: false },{ start:...
Position your badge with left instead of right: .noti_bubble { position: absolute; top: 2px; /* this will anchor your badge from its left-hand edge at the midpoint of your icon...
Previous answers doesn't really answer your question: "How do I create a radial css3 border gradient shadow" You can use a radial gradient to simulate a border shadow without images....
This is happening because of this the following style. label + input { width: 30%; margin: 0 10% 0 1%; } All inputs following a label will gain a width...
The point: The floated element should be placed before everything in the container. When you put the paragraph at first, it takes up all the width of its parent. And...
#shape { width: 100px; height: 0; border-top: solid 40px blue; border-left: solid 40px transparent; } Demo: http://jsfiddle.net/FTu6R/...
Codepen example $(function() { $( "#dialog" ).dialog({ autoOpen: false, close: function( event, ui ) { $('.rofl').removeClass('fixed'); } }); $( ".opener" ).click(function() { $( "#dialog" ).dialog( "open" ); $('.rofl').addClass('fixed') }); });...
Change the id to class. It's not working correctly because you can just have one ID at a time. here is a live example: http://jsfiddle.net/qh7St/2/ $('.ball').click(function() <div class="ball"></div> I'm not...
Whenever you add a css file to the page, it applies to the whole document. However looking at your code, what I think you're trying to do is display 1...
After more search, I ended with this code, from site http://waseemblog.com/42/movable-div-using-javascript.html html: <section class="about" id="results" style="left: 183px; top: 111px;" onMouseDown="dragStart(event, 'results');"> <div align="right"><a href="#" class="classname"...
Give float:leftto the image the text should automatically get to the right side.
You can use JavaScript for detecting the users browser via userAgent, than according to the result you can aply the needed style. function getBrowser() { var browser = navigator.userAgent; if...
Though you can make a responsive design by modifying your css for different resolutions. But there is a library available which is quite good to implement a responsive design. http://twitter.github.io/bootstrap/...
I'm not aware of any good cross-browser methods to style a select box with just css, but I have had success in the past with this using jquery ui http://filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/...
You just need to add bottom: 0 to your css: .casa5 { background-color:#0C0C0C; width:100%; height:24px; position:absolute; left: 0; right: 0; text-align:center; font: 90%'Lucida Sans Unicode', 'Bitstream Vera Sans', 'Trebuchet...
Remove overflow: hidden from <ul> and add make it a flex container using display: flex;. And you have implemented the fontawesome icons in your CSS, which is a wrong way...
You need to add layout to your .nav li selector. .nav li { display: inline-block; } or you can float it: .nav li { float: left; } ...
You can easily do it with ng-class directive: <form name="myForm"> <div class="control-group" ng-class="{ error: myForm.salt.$invalid }"> <label class="control-label" for="salt">Salt: </label> <div class="controls"> <input type="text" name="salt" ng-model="salt" ng-pattern="hexPattern">...
I have found an answer : CSS : pointer-events: none; ...
That offset is basically the x,y position that the browser has calculated for the element based on it's position css attribute. So if you put a <br> before it or...
try this just add span with float right:- $("ul.dropdown li ul li:has(ul)").find("a:first").append("<span style='float:right'> »</span>< "); Dermo...