samedi 25 juin 2016
Checked state for buttons Bootstrap
How to center text vertically in a heading?
I have a h1 element that has width and height set. I want to vertically center the text but I can't seem to do it. Please see my code below:
h1 {
width: 150px;
height: 150px;
background-color: #888888;
color: white;
text-align: center;
vertical-align: middle;
}
<h1>Test</h1>
Unable to select radio button in MaterializeCSS
Responsive Background for Mobile
I have a responsive website but my background doesn't shows properly with phone (iphone6) i haven't tried with other phones. My background just zooming in my phone and looks terrible wanna make it responsive to fit on mobile screen.My website is www.orangegsm.hu I tried in css with :cover code that's the code what i'm using right now:
#background
{
background-attachment: fixed;
background-image: url("../img/bg1.jpg");
background-position: left top;
background-repeat: no-repeat;
background-size: cover;
min-height: 100%;
min-width: 100%;
position: fixed;
width: 100%;
z-index: -2;
}
Thanks!
Embed instagram photo gallery with custom choosed photos on my website
I would like to embed an instagram photo grid on my website. But it should not be the last images on my feed, or the last images of a specific hashtag. I want to embed custom choosed photos, from different feeds, users and hashtag. But without the border and caption and stuff which is shown, when i just embed like described here: https://www.instagram.com/developer/embedding/
Is this possible? Do I need to use the Instagram api for that?
background-image showing invalid property
After looking many a solutions, none of that could resolve the issue i am in. Below is my code
<div style="height:210px; max-width: 100%;
background-color: #e9ebee; background-position: center 50%;
background-repeat: no-repeat; display: block;
background-image: url('imagefromdb');"></div>
When inspecting element, I see background-image to be an invalid property. Now, for me, I could have accepted that if all images did not render. But the case is some images render, some does not.
I am rendering the images fetched from DB in a loop