I'm trying to stack 3 icons from font awesome into next to each other. See image for reference. I know font awesome has a stack class but that seems to have only 2 icon stacks and right on top of each other. Also I would like the individual icons to have a background in the area of the screen so that those areas are clipped and dont overlap.
Should I create a new svg and use that or is going the css route worth the effort.
Thanks
I think a new SVG is your best option.
Referring to your image, noting that FontAwesome icons are transparent, you would not be able to stack the fa-laptop in front of the fa-desktop and fa-mobile icons without them being visible through the laptop's screen.
Here is a demo to stack them with CSS and some absolute positioning to show you what I mean;
https://jsfiddle.net/k3en9L4m/
span.stack{
position: relative;
}
span.stack i{
position: absolute;
}
Related
So this plugin clearly has transparent background and rounded corners:
Even when you scroll down on the page the background will scroll behind it, so it's unlikely any trick with captureVisibleTab is being done.
So I'm wondering how this was achieved, because any other SO-articles seem to suggest it is impossible, however they are pretty old:
Make Chrome Extension Popup Window Transparent
How to make border radius in popup chrome extension?
Curved corners on a popup.html?
I'm curious what kind of hack they have used, or that I'm missing something obvious in the docs.
For me at least simply setting background-color: transparent; on any element in the popup.html does not do anything.
Have they used a trick by loading 2 separate html files with an offset? That still doesn't explain the rounded corners though.
As #woxxom pointed out, the 'popup' is rendered on the page itself and not in a popup.html.
You can see its offset from where a plugin would normally be shown.
I'm working on a visualisation involving stacked histogram with really thin bars.
The problem is that white background introduces unpleasant visual vibration and make bars somewhat hard to interpret:
http://i.stack.imgur.com/GN0XD.png
What I'm looking for is a way to set a specific colour for chart background. I've tried to set it for SVG element like so:
svg {
background-color: #ccc;
}
But (obviously) it doesn't work properly:
http://i.stack.imgur.com/ctbYo.png
How do I set a background colour so that it'll be exactly the same shape as a chart?
I managed to come to this quick-and-dirty solution. Just adding a one pixel pseudo-shadow to the right of each bar:
rect {
-webkit-svg-shadow: 1px 0px #ccc;
}
Produces this:
http://i.stack.imgur.com/xSVOD.png
How is the chart being instantiated? by using svg { background-color: #ccc;} you are setting the background color of all svg elements to #ccc (except where over-ridden), so if your chart is a child of another svg element with some margins it would explain why the alignment is no good.
One strategy to go about fixing may be to use your browser's debugging abilities (ctrl+shift+i to bring up 'developer tools' in chrome) to take a look at the DOM elements and try to narrow down which ones cover which areas of the graph vs the areas of the graph plus the margins on the bottom/left. not sure about other browsers but chrome is useful in that if you hover over an element in the html document it will 'highlight' that element in the browser. This might help you narrow down which objects specifically need to be stylized.
I have the Owl Carousel set up and it works great, but I have text over the image that doesn't resize in response to the viewport change. The images resizes, but the text remains the same.
How can I make the text (within p and div tags) to be responsive with the images?
I have the same problem...I found a free theme where text is responsive with this plugin but still I don't understand what is the code to fix it...hope this can help someone
here the link of the theme:
http://w3layouts.com/demos/umbrella/web/#
look at "testimonials" section
Regards
add this bottom: 30% !important; inside the CSS at the only screen and (max-width: 767px) section, for the owl caption label.
I'm pretty new to Fireworks. I drew an orange rectangle and made it semi-transparent. My web page has a patterned background which I'd like to be able to see through my div, but I can't change the opacity of the div in CSS as the div contains other divs that also become transparent using this CSS when I don't want them to!
I've tried loads of things I found on Google but to no avail. Can anyone help?
If you want to know how to export the semi-transparent rectangle from Fireworks so it stays that way, just make sure your canvas color is set to none (the box with a red diagonal line through it) and then export it as a PNG-32.
I'm not sure I understood what you mean by DIVs becoming transparent when using CSS. Can you elaborate on that a bit?
I am applying a border radius on a select element that has a background color.
Instead of following the curvers of the border, the background color overlaps the curves and appears in a square box.
I can't figure out what css property I must use to solve this issue.
background-color: #FF0;
border-radius: 24px;
border: 4px solid #F09;
Here is the jsfiddle: http://jsfiddle.net/JsgnR/
thanks for your help
My feeling about this is, to get this to work in every common browser, you will have to rebuild the select with JS ... unfortuneatly styling selects with css like a divbox still not is possible as you would expect. In latest Firefox your code looks nice in browser, because firefox decided to let the border overlap the select, in latest opera the border will be underneath the select, because they decided to.
you see that on the options , try to style them via css, you are not able and they look ugly
You can wrap <select> element in <span></span> and add the required properties to css for
This solution: http://jsfiddle.net/JsgnR/5/