mardi 28 juin 2016

How do I create a row of justified elements with fluid spacing using CSS?


How do I create a row of block elements with auto widths using text-align:justify, display: grid, column-count and/or other CSS properties?


How to compile sass to css in django at runserver time?


In django project i wants to compile sass file into css at runserver time. I have tried django-sass-processor but i am not getting how to use it. can someone please help me

Change CSS based on current page in Rails?


So I have a bootstrap navbar that I want to have one color in the pages /users/sign_in and /users/sign_up, and another color in the rest. How would I do that?

lundi 27 juin 2016

Custom component using material-ui theme [on hold]


Using Material-UI

I want to create a custom component that uses some of the theme properties from the mui light theme.

How do I make the theme available?


Insert bulk product into woocommerce


Is it possible to insert many product in woocommerce at once time? The product in excel not CSV. around 1000++ products there.

Any plugin that I can do use it?

Thanks


Gettin Bootstrap 3 Datepicker widget above everything else


I'm trying to get the widget to be above anything else (a map in my situation). See exemple : http://zoziologie.raphaelnussbaumer.com/improved-biolovision-visualisation/ I've try this without succes: .bootstrap-datetimepicker-widget{ z-index: 99999 !important; } I'm using this datepicker: http://eonasdan.github.io/bootstrap-datetimepicker/ Any idea?

Custom cursor image doesn't work in all IEs?


I think I have tried different methods suggested all over the internet but nothing worked. This is my current css code:

div {
   cursor: url(images/zoomin.cur), auto;
}

It works fine except in IE...


Issues with font/text-color in css


I keep having issues with the text-color rule in css whereas I'll have a code like this:

#horizontal > ul > li > a:hover {
    background-color: rgb(255,101,101);
    text-color: black;

And the background color will change, but the text remains blue.


How to align two commandButtons inside a form


I have two <p:commandButton> elements inside <h:form> in my .xhtml page. How to align them center?

enter image description here


Element in completely different place in Firefox


I've got a video slider on this site http://fatdonut.ie/#projects . The problem I'm having is that the slider navigation controls , next and previous (#controls) are showing up in a completely different place in firefox . They should be just inside the slider , which they are in all other browsers


3 divs with overflow scroll wont fit in page max-height 100%


body,html{
  max-height:100vh;
}
#content{
  max-height:100%;
}


#div1,#div2,#div3{
  background:#fff;
  overflow-y:scroll;
  max-height: 30%;
}

I'm having hard time to make it work.
For example "title2" should be overflow scroll but instead it keeps overflowing its parent. Wont fit in page max-height 100%.

https://jsfiddle.net/cbjkc4dg/1/


Mouse Scroll wheell is not worked when mouse over the i-fame of the page


In my website there is a i-frame in a area of the page. All the page the mouse scroll is working perfectly but when the mouse over the i-fame the mouse scroll is not worked. This problem is shown in chrome only but the Firefox bowers is worked properly. I can not find the solution yet.Please help me.i am feed up to find the solution.please help.


Bootstrap - Center Align Image in the tablet view


I have a row that shows 3 images in a row on a desktop view

[1] [2] [3]

On a tablet view, it appears like

[1]  [2]
[3]

What I want is 3rd image to appear in the center and not on the left of the second row (on tablet)

classes on my divs containing images are

col-md-4 col-sm-6

Ideas ??


How to rotate + flip element with CSS


The transform property lets you rotate or flip, but how can you do both at the same time? Say I want to rotate an element 90 degrees and flip it horizontally? Both are done with the same property, so the latter overwrites the former. Here's an example fiddle for convenience:

http://jsfiddle.net/DtNh6/

transform: rotate(90deg);
transform: scaleX(-1);

CSS font faces from imported files


So i have got font face

@font-face {
    font-family:Butler;
    src: url(../fonts/OpenSans-Light.ttf);
}

And two files user.css and options.css so how can i use this font in both of them without adding this code in every file. I tried creating new file font.css with @font-face {

 @font-face {
    font-family:Butler;
    src: url(../fonts/OpenSans-Light.ttf);
}

And then import it in my user.css,but it did not work for me


How to hide the menu bar during a popup?


I got a plugin called Touchy for touch devices, so the menu bar stays on the top. But I have integrated live chat on my website, so the menubar doesn't disappear no matter what, and on mobile devices, you won't be able to close the chat because of the menu bar. You'll know if you'd look at my website on your device. http://bestprojects.in. Is there anything that can be done? Could we hide the menubar during the chat popup?


Is it better to have more sepecific class names, or paths? [closed]


From an optimization stand point is it more efficient to have longer more specific chains like:

.first {
    /*some css*/
}

.first .second{
    /*some css*/
}

.first .second .third{
    /*some css*/
}

.first .second .third .fourth{
    /*some css*/
}

Or is it more efficient to make more unique/specific class names like:

.first {
    /*some css*/
}

.first-second{
    /*some css*/
}

.first-second-third{
    /*some css*/
}

.first-second-third-fourth{
    /*some css*/
}

Is there perhaps a tipping point somewhere where longer paths become less efficient than unique names and vice/versa ?


layout.ejs does not work in node


How can I make the following code in jade to work in ejs.

So that I can render a uniform view across all pages and also include common css and js files.

layout.ejs

block main-content
include scripts

scripts.ejs

<script type="text/javascript" src="/vendor/jquery/jquery.js">
<script type="text/javascript" src="/vendor/angular/angular.js">

index.ejs

extends ../includes/layout
block main-content
 section.content
  h1 hello world

Does ejs provide such a layout feature?


Overlay div with position absoulte and height 100% not moving with the scroll


please look here and click the on button.

.darkClass
{
    background-color: white;
    filter:alpha(opacity=90); /* IE */
    opacity: 0.9; /* Safari, Opera */
    -moz-opacity:0.9; /* FireFox */
    z-index: 2000;
    height: 100%;
    width: 100%;
    background-repeat:no-repeat;
    background-position:center;
    position: absolute;
    top: 0;
    left: 0;

}

You will see that the overlay div is covering the whole screen as desired, but when I scroll it isn't moving with the scrolling as expected.

I would like to see the grey overlay moving with my scrolling.

what am I missing here CSS-wise?


Place navbar above <p> element and image


I have this nav bar formatting on my webpage. Desired Format But I would like it to look like this.The navbar is above the image and corresponding paragraph element. Desired Format

The picture is the figure element. Here's the index.html and css file. Thanks!