spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
  Home » CSS » Page 1
Overwrite previous element
You should target <li> instead of <a>. a { text-decoration: none; } ul { list-style-type: none; width: 200px; } ul li { padding: 5px; border-bottom: 1px solid red; } ul li:hover { border-bottom: 3px solid blue; padding-bottom: 6px; } <ul class="sidebar"> <li> <a href="#">Sidebar Item #1</a> </li> <li> <a href="#">

Categories : CSS

Is it possible to make a custom css for "each" primefaces themes?
You may simply create your custom Primefaces theme using Themeroller or 3rd party app. Look here (look at the bottom) for more info.

Categories : CSS

CSS3 hover transition effect scale
The hover event moves the very element on which the same hover event is listened. So once the transition has ended, your element isn't hovered anymore as soon as you move your cursor just a tiny bit. You should try wrapping your image inside an immobile container and listen to the hover on this container. EDIT: added this snippet: #image1 { position: relative; height: 150px; width: 350p

Categories : CSS

My logo doesn't scale until a certain browser size, creating overlapping errors
Do this: @media screen and (max-width: 768px) { /* Adjust the max-width to be the measure at which you want your logo to start changing and then add the responsive CSS for the logo here */ } Note: Don't forget to strip off the responsive CSS for the logo from the old location to avoid conflict.

Categories : CSS

CSS select every em element first-child of a paragraph in even position
Change like this: p:nth-child(even)>em:nth-child(1){background-colour:red;} or this: p:nth-child(even)>em:first-child{background-colour:red;} JSFiddle.

Categories : CSS

Why is this CSS class styling order-dependent?
The reason is that this .container { border: 4px solid; } is actually shorthand for .container { border-width: 4px; border-style: solid; border-color: ** current font color **; } Consequently, the later style overrides the previous border-color declaration. Border @ MDN

Categories : CSS

bootstrap modal opacity changing to white
Instead of .modal you should work on .modal-content and .modal-header .modal-content { background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size:16px; } .modal-header { background-color: blue; border-radius: 6px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; font-family: Georgia, 'Times New Roman', Times, serif; font-size:24px; }

Categories : CSS

Twitter Bootstrap 3.0 - difference between nesting
The outer element sets the constraining dimension for the inner element, you can see this in effect if you simply do: Demo Fiddle HTML <div class="col-xs-10"> <div class="col-xs-12"></div> </div> <div class="col-xs-12"> <div class="col-xs-10"></div> </div> CSS div { height:20px; } .col-xs-12 { border:1px solid red; } .col-xs-10

Categories : CSS

How to remove
 tag
You can add the following to your CSS to overwrite this specific pre tag .page-content.entry-content pre { white-space: normal; } If you use a child theme, you can add it in your stylesheet (style.css), else you could use Jetpack's Custom CSS to add it. If the above wouldn't work, try: .page-content.entry-content pre { white-space: normal !important; } GL!

Categories : CSS

collapsible header long text issue
var element =''+ '<div data-role="collapsible" id="set1" data-iconpos="right" data-theme="d" data-content-theme="b" align="right" dir="rtl">'+ '<p><h4 onclick="changeText(this);" align="right" dir="rtl">'+$(node).find("NoteText").text()+'</p></h4> '+ '<table border = "0"> '+ '<tr align = "ri

Categories : CSS

Force Zoom-Level/DPI-Scale with CSS, Header-Tag or JavaScript
There doesn't seem to be a code fix for this, but it can be fixed by changing your browser settings. See links below: https://support.mozilla.org/en-US/questions/962979 Stop Firefox DPI Scaling (when Windows setting is at 125%)

Categories : CSS

CSS - Hover and change triangle color
Place the arrow as the before pseudoelement of the first link Example fiddle: http://jsfiddle.net/ebcho06a/5/ .messages a:first-child:before { content:''; display:block; position:absolute; margin-left:-10px; left:50%; top:-20px; width:0; height:0; border:10px solid black; color:black; border-color:transparent transparent #fff; } .messages a:first-chil

Categories : CSS

Rails: page-specific CSS class in a common layout
I think content_for will be good for this. In your layout application.html.erb: <DOCTYPE! html> <html> <head> · · </head> <body class="<%= content_for :body_class %>"> <header class="<%= content_for :header_class %>"> · · </header> · <%= yield %> · </body> </html> In vi

Categories : CSS

Delayed animation timing for different elements in a CSS 3D flip?
You can not do it in you current setup. This is because you are not moving the front or the back, but the container. If you want them to move differently, you have to move them directly instead of the container #container:hover #front { transform:rotateY(180deg); } #container:hover #back { transform:rotateY(360deg); } #front { transition:all 1s ease-in-out; } #back { transition:

Categories : CSS

How to start a new column in flex column wrap layout
I don't think there is a way to do this with flexbox, however, if we use column-count we can take advantage of the properties: ‘break-before’, ‘break-after’, ‘break-inside’ In particular: We can set break-before: column; on each 'head' element, where the column value means: Always force a column break before the generated box. (similarly if we were using break-after:column t

Categories : CSS

Add record CSS not rendering Jtable
I think you may have missed referencing the jquery-ui.css file. The Edit/Create jtable modals use this css. Mine resides here: You may have to change the relative url in this css for icons. Hope it helps.

Categories : CSS

Inline CSS Does Not Work When Transferred to External Stylesheet
url(...) is relative to the file it is found in. So when it is in the html file, it tries to load ../image.jpg from the HTML file location. When you move it to the CSS file, if the css file is in a different folder, it may search a different folder. Make the url either absolute or adjust it to be relative to the .css file and your code should work. A way you can confirm this in the future btw is

Categories : CSS

CSS Positioning Issue on Chrome
Ok, so the problem was with your object, but exact problem - with css rule "z-index: -1" I made following changes in developer tool 1) Put your object after all site content 2) Add to your object css left: 0 and z-index: 0 3) Add to block .left and .wrapper styles - position: relative and z-index: 1 And after this changes - it looks fine in my Chrome. Hope it helps

Categories : CSS

PhantomJS + CMYK color css3
PhantomJS 1.x is based on an old QtWebKit fork from around 2010/2011 or comparable to Chrome 13. Around that time the CSS Color Module Level 3 specification was introduced which doesn't contain a cmyk function whereas the current CSS Color Module Level 4 draft contains the device-cmyk function. It is just too new. It is possible that it will be supported in PhantomJS 2.x, but I don't think it wil

Categories : CSS

Wrap an input with pseudo borders made of divs
If you don't mind using a slightly more up-to-date approach, using pseudo-elements, this is possible with the following: input { margin: 0; /* removing the border of the nested input since those borders aren't what you want: */ border-width: 0; } div { /* causes the <div> to collapse to the size of its content: */ display: inline-block; /* removes the space between the ou

Categories : CSS

Site doesn't display styling on Firefox or IE –– works fine with Chrome and Safari
It looks as if your problem has to do with a same-origin policy violation: https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy Basically, your website is completetrackandfield.com and the CSS file attempting to load is served from www.test.completetrackandfield.com -- Firefox (and I believe IE) block these requests because cross-domain requests like this can be used in Cross-

Categories : CSS

CSS - Position image to the left + partly cut-off + responsive + Bootstrap
Set the width of the image to 100% of the width of the container then give it a negative left margin to move it 'off-canvas'. You could also consider changing the margin to be a percent so it gets smaller as your window width changes. CSS .hero-img { margin-left:-150px; width:100%; } Live example: http://www.bootply.com/lF9VBcD1wz

Categories : CSS

Can i cross-fade li elements using angularjs ngAnimate
I used opacity instead of display in the ng-style of li and added a CSS transition to it. FIDDLE. Hope it helps.

Categories : CSS

hidden-sm in bootstrap 3
Provided I'm interpreting what you're trying to say correctly, when the sidebar is hidden, you want the main div to go to the left most edge of the screen? Simply getting rid of the padding styling for that div made that happen. BOOTPLY HTML: <div id="sidebar" class="hidden-sm">sidebar</div> <div id="main">test</div> CSS: #sidebar { width:200px; float:left;

Categories : CSS

Ruby on Rails - Bootstrap / Form_for vs input_groups - How to stop styles butting heads
The problem you are running into is form_for is using the rails FormBuilder to generate your form and the method text_field is translating to a specific piece of html. You can have it create a different piece of html by creating your own form builder. If you opt to use another gem like simple_form it gets even easier as you can just create additional types of fields. You can look over the document

Categories : CSS

locating joomla files when I do inspet element in firefox
Have you found the place where you can edit your file in joomla - extensions - template manager - then edit template from there. Dont look at the style option but the other one (template) you can edit all files there including css files. There should be an option the overide the file. You should look to do this as joomla can overwrite existing file when updating. For now though this should get y

Categories : CSS

Some Images flicker in IE8
Try compressing the image and see if flickering is still a problem. lets say your 'image2.png' is 2mb, use paint or any other photo editing apps to compress it ( Open it with paint and save it, and if the image is too big, you can scale it). does this problem exists in other browsers? Is updating your browser not an option?

Categories : CSS

Tooltip CSS ONLY: focus and hover prevents access to following button
Try refactoring your CSS to something like this: button:hover>.tooltip, button:active>.tooltip { visibility: visible; opacity: 1 } button:focus>.tooltip { visibility: visible; opacity: 1 outline: none; }

Categories : CSS

Strange shadowed boxes randomly appearing - CSS error?
Open your site in Firefox or Chrome Reproduce the error right click on the weird shadow box and select inspect this look for a box-shadow in your inspector and disable by clicking off the checkbox If it worked, give yourself a cookie! You're a master debugger

Categories : CSS

Bootstrap popover dynamic size
UPDATE: http://jsfiddle.net/x075bm6x/7/ JQ $('.popover-markup>.trigger').on('shown.bs.popover',function(e){ var $link =$(this); var winW=$(window).width(); var poL=$link.offset().left+$link.width(); var newW=winW-poL-60; var poId=$link.attr('aria-describedby'); var $po=$('#'+poId); console.log(poId+': '+winW+' L: '+poL+' > '+newW); /

Categories : CSS

Horizontal List Exceeding Right Margin
Clay, You can do this by applying a display:block to the LIs inside a media query for the width you want them to respond to. For example: @media (max-width:768px){ #footer-links li { display:block; margin: 0; padding: 0 .4em 0 .6em; border-left: 1px solid; } } See HERE But with that in mind, if you are building a responsive design, you should look into a respons

Categories : CSS

How to put !important in all CSS properties using SASS or CSS3?
No. Sass does not have a programmatic way of applying the !important flag to the rules for any given selector. The only thing you can do is increase the specificity of the selector in question. p { white-space: normal; height: auto; @include ipad { body & { width: 280px; overflow: hidden; text-overflow: ellipsis; white-space:

Categories : CSS

Wrap content and remove extra whitespace?
I am not sure I understand what you are trying to achieve so I added this to the CSS based on my understanding: .ioholder { display:inline-block; text-align:center; padding:10px; } .ioholder > .imghold{ float: left; }

Categories : CSS

Force div's height expand with it's container
demo - http://jsfiddle.net/wqbr78wa/2/ use calc but you need to give fix height for header and footer fiddle body, html { height: 100%; } * { box-sizing: border-box; margin: 0; padding: 0; } .container { width: 50%; height: 100%; background: #e0e0e0 } .header { background-color: #ff0066; padding: 5px 0px 5px 5px; height: 30px; } .content { background-color: #333; color

Categories : CSS

Animation delay on page load
You can do this much simpler than keyframe animations. Change your code to something like this: #topHeader .image { transition-delay: 10s; transition: opacity 1s; opacity: 0; } #topHeader .image.YOUR-FIRING-CLASSNAME-HERE { opacity: 1; } Plus, the days of needing to prefix every CSS3 property are pretty much over. You don't need -o-, -ms-, etc. etc. Save for keyframes, as those appa

Categories : CSS

CSS Keep on-hover item open until another item is hovered on
The :hover pseudo class applies for the duration that a pointer is over an element. If the user leaves the element, they aren't hovering it anymore. So ,the short answer is no. You could use animations to delay the effect. Instead of actually keeping the element visible, even after the cursor leaves, you could put an animation on it that just adds a delay before it closes. If you applied an

Categories : CSS

Confused by LESS replace() function behavior
try this .foo(@xyz) { @props: ~`"@{arguments}"`; @pfx: replace(@props, "^(.).*$", "$1"); .@{pfx}-foo { margin: 0; } } .foo(abcdefghijklmnop); EDIT Also answering the comment, you want to pass a string to replace, actually a simpler version would be to use .foo(~"abcdefghijklmnop") that forces less to consider the parameter as string without outputting the quotes.

Categories : CSS

How to transform an image in SVG (or CSS) into a non-parallelogram shape?
There is, theoretically, a way to create the type of distortion you need using SVG 1.1. It relies on the <feDisplacementMap> filter element. I include sample code below if you want to explore it. However, I wouldn't recommend it as anything other than a curiosity; from my testing, the code currently only gives the desired result in Chrome (and probably related browsers). Internet Explorer

Categories : CSS

Ignore CSS declaration on a specific control
All you need to do is target that specific checkbox and give it a display of initial. You haven't provided any HTML so I'm going to have to make up a generic example: input[type="checkbox"] { display: none; } input[type="checkbox"].bar { display: initial; } <input type="checkbox" class="foo" /> <input type="checkbox" class="bar" /> <input type="checkbox" class="baz" />

Categories : CSS


Recently Add
BEM CSS with common styles
Overwrite previous element
Is it possible to make a custom css for "each" primefaces themes?
CSS3 hover transition effect scale
My logo doesn't scale until a certain browser size, creating overlapping errors
CSS select every em element first-child of a paragraph in even position
Why is this CSS class styling order-dependent?
bootstrap modal opacity changing to white
Twitter Bootstrap 3.0 - difference between nesting
How to remove
 tag
collapsible header long text issue
Force Zoom-Level/DPI-Scale with CSS, Header-Tag or JavaScript
CSS - Hover and change triangle color
Rails: page-specific CSS class in a common layout
Delayed animation timing for different elements in a CSS 3D flip?
How to start a new column in flex column wrap layout
Add record CSS not rendering Jtable
Inline CSS Does Not Work When Transferred to External Stylesheet
CSS Positioning Issue on Chrome
PhantomJS + CMYK color css3
Wrap an input with pseudo borders made of divs
Site doesn't display styling on Firefox or IE –– works fine with Chrome and Safari
CSS - Position image to the left + partly cut-off + responsive + Bootstrap
Can i cross-fade li elements using angularjs ngAnimate
hidden-sm in bootstrap 3
Ruby on Rails - Bootstrap / Form_for vs input_groups - How to stop styles butting heads
locating joomla files when I do inspet element in firefox
Some Images flicker in IE8
Tooltip CSS ONLY: focus and hover prevents access to following button
Strange shadowed boxes randomly appearing - CSS error?
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.