Magically, you can not view the image - html

I have maybe simple problem but I really don't know what's wrong :(
http://airbyt.cz/byty Images in the divs are not loaded in all browsers except google chrome and chrome mobile. It doesn't log error in the path.
there is code.
<main>
<div class="object-byt"><h1>Modern apartment close to center with jacuzzi</h1><div class="for-img"><div class="zakryj"></div><span><i class="fa fa-2x fa-home" aria-hidden="true"></i></span><img src="img/ap-1.jpg" alt="interior"></div></div>
<div class="object-byt"><h1 class="broken">Cozy apartment in Prague</h1><div class="for-img"><div class="zakryj"></div><span><i class="fa fa-2x fa-home" aria-hidden="true"></i></span><img src="img/ap-2.jpg" alt="interior"></div></div>
<div class="object-byt"><h1>Super luxury apartment in center of Prague</h1><div class="for-img"><div class="zakryj"></div><span><i class="fa fa-2x fa-home" aria-hidden="true"></i></span><img src="img/ap-3.jpg" alt="interior"></div></div>
<div class="object-byt"><h1>Great apartment in center of Prague</h1><div class="for-img"><div class="zakryj"></div><span><i class="fa fa-2x fa-home" aria-hidden="true"></i></span><img src="img/ap-4.jpg" alt="interior"></div></div>
<div class="object-byt"><h1 class="broken">Cozy apartment in heart of Prague</h1><div class="for-img"><div class="zakryj"></div><span><i class="fa fa-2x fa-home" aria-hidden="true"></i></span><img src="img/ap-5.jpg" alt="interior"></div></div>
</main>
I will be glad for every advice. Thank you

Your image is in webp format which is only read by Chrome. You need to convert it to a regular image file. I tried http://image.online-convert.com/convert-to-jpg on one of your images and it worked. I'm sure there are many other solutions as well.

Related

Font awesome stacking square and square-o don't align

I'm trying to make this using font-awesome stacking
I've tried two ways, but both are ugly. The problem is that fa-square and fa-square-o are different sizes, so when you stack them, they don't line up!
my fiddle
<span class="fa fa-stack">
<i class="fa fa-square fa-stack-1x"></i>
<i class="fa fa-plus-square fa-stack-1x fa-inverse"></i>
<i class="fa fa-square-o fa-stack-1x"></i>
</span>
<span class="fa fa-stack">
<i class="fa fa-square fa-stack-1x fa-inverse"></i>
<i class="fa fa-plus-square-o fa-stack-1x"></i>
</span>
The result is
I have tried to scale down the fa-square by 86% using css. However, that is very fragile, because it depends on the browser and the zoom setting. I would like the solution to look good on both Chrome and IE11 at multiple zoom levels.
This might help.
body {
background-color: tan;
font-size: 100px;
}
.fix:before {
background: #000;
border-radius: 20%;
padding: 1% 5%;
}
.fix-2:before {
background: #000;
border-radius: 20%;
padding: 1% 10%;
}
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/>
<span class="fa fa-stack">
<i class="fa fa-square fa-stack-1x fix"></i>
<i class="fa fa-plus-square fa-stack-1x fa-inverse"></i>
</span>
<!-- Without Stacking -->
<i class="fa fa-plus-square fa-inverse fix-2"></i>
Unfortunately, if you want to use the icons of Font-Awesome, you will have to contribute to the project by making a new generation of fa-square and all the derivatives (rss-square, ...) to standardize the size of the icons.
Developers no longer accept pull-request for icons so it may take a long time before it is accepted. (As Hugues M. said, it's a known bug)
The workarounds I see:
Create your own icon based on a font (see this post), override the square unicode (f0c8) or get an other free one. (and push your solution in github). It is generic, you can dynamically change the color but it take a long time.
Or simply make an image (SVG or something else) for your project, it's quick but less malleable.

How to align text beside an icon?

I have a contact us page in which I have a picture followed by an icon and some text. I want to align the text beside the icon.
<div class="col-lg-7 col-md-7 col-xs-7" style="text-align: center;">
<img src='../assets/img/Website-Png/map2.jpg' >
<br><br><br>
<div>
<i class="fa fa-map-marker" id="contact_icon1" aria-hidden="true"></i>
<span class="contact_font1">505-506, Kshitij Building, Veera Desai Rd, <br> Andheri West, Mumbai 40 0053</span>
</div><br>
<div>
<span>
<i class="fa fa-phone" id="contact_icon2" aria-hidden="true"></i>
</span>
<span class="contact_font2">+91 22 6470 1000</span>
</div><br>
<div>
<span>
<i class="fa fa-envelope-o" id="contact_icon3" aria-hidden="true"></i>
<span class="contact_font3">info#mentoria.com</span>
</span>
</div>
</div>
try this
add class to your div :
<div class="icon-text-group">
<i class="fa fa-map-marker" id="contact_icon1" aria-hidden="true"></i>
<span class="contact_font1">505-506, Kshitij Building, Veera Desai Rd, <br> Andheri West, Mumbai 40 0053</span>
</div>
then add css for the class :
.icon-text-group i, .icon-text-group span {
display: inline;
}
You do not need to use too much divs and though if you want to use div no need to use line break. As, div is block level element, it will automatically start on next line. You can use <p></p> instead.
also,
you can write text immediately after <i></i>
eg,
<p>
<i class="fa fa-map-marker"></i> 243 Elm Street,Claremont,NH 03743
<i class="fa fa-phone"></i> 603-542-7771
</p>
You can add contact number in anchor tag, and if you need you can add class to anchor tag.
Always try to wrap up your code in as less divs as possible. This will help to load your page faster.

Unable to move icon inside the circle

I am trying to place fa-graduation-cap inside a circle.
So, that means:
<span class="fa-stack">
<i class="fa fa-circle fa-stack-4x text-primary"></i>
<i class="fa fa-graduation-cap fa-2x"></i>
</span>
But it doesn't work. The output is this:
The graduation-cap is outside the circle. Why is that?
Note:
text-primary is the bootstrap class for color.
You're not applying those classes in the correct way/order.
Following the code from the examples, here we go.
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x text-primary"></i>
<i class="fa fa-graduation-cap fa-stack-1x fa-inverse"></i>
</span>
If you want it to be bigger just add a class fa-2x, fa-3x, fa-4x or fa-5x to the span, nothing else.
Check it on this fiddle.
How are you trying to put the elements together with CSS ?
you probably need to position the icons individually to place them where and how you want them. This could possibly be done with the following:
.fa-stack{position: relative;}
.fa-circle{position:absolute; top: 10px; left: 10px;}
.fa-graduation-cap{position:absolute; top: 20px; left: 10px;}
you can move the icons over the screen by changing the pixels in the top value and the left value for example.

Producing a timezone icon using fontawesome

Has anyone ever done a nice looking timezone icon with font-awesome? I was thinking perhaps the world and time together, but I cannot get it looking nice.
<span class="fa-stack">
<i class="fa fa-globe fa-stack-2x"></i>
<i class="fa fa-clock-o fa-stack-1x"></i>
</span>
The above is maybe a starting point but I would have to change colors or something, or maybe style them myself side by side rather than stacked- so I wondered if someone already had something that looked good? It does not need to be world and time, could be something else that means timezone to a user.
Something like this. The key is to get the colors to be different enough that the clock stands out, and to put the clock in an appropriate spot.
<span class="fa-stack">
<i class="fa fa-globe fa-stack-2x"></i>
<i class="fa fa-clock-o fa-stack" style="color: #ccc; text-align: right; margin-right: 0.35em; margin-top: 0.25em; right: 0; position: absolute;"></i>
</span>
https://jsfiddle.net/01h9p7xx/

Bootstrap v3.3.0 Columns Too Wide

I've been really frustrated over the issue, searched many options, found none to work, and do not have the heart to ponder over it further.
The website in question is https://flix-c9-airbusai342.c9.io/.
Here, I'm having issues with the columns being too wide in mobile. Yes, they are properly stacking, however, not sure what's causing it to be too wide.
Below is a direct snippet of the code of the area in question. The class .stats is onlybackground-color: #D8D8D8; for changing background color.
<section class="stats">
<div class="container-fluid">
<div class="row-fluid">
<div class="col-md-4" align="center">
<span class="fa-stack fa-4x">
<i class="fa fa-circle fa-stack-2x turquoise"></i>
<i class="fa fa-code fa-stack-1x fa-inverse"></i>
</span>
<h2>Professional Coding</h2>
<span class="text-muted"><p>A team of experienced web developers are ready to give you the best quality code available to be provded for you. <b>Each</b> and <b>every</b> time.</p></span>
</div>
<div class="col-md-4" align="center">
<span class="fa-stack fa-4x">
<i class="fa fa-circle fa-stack-2x turquoise"></i>
<i class="fa fa-bolt fa-stack-1x fa-inverse"></i>
</span>
<h2>Dedicated Team</h2>
<span class="text-muted"><p>Nothing's perfect. Even us. Thus, our dedicated team is ready to help you whenever you need it, even if it means sacrificing leasure time.</p></span>
</div>
<div class="col-md-4" align="center">
<span class="fa-stack fa-4x">
<i class="fa fa-circle fa-stack-2x turquoise"></i>
<i class="fa fa-mobile fa-stack-1x fa-inverse"></i>
</span>
<h2>Mobile compatible</h2>
<span class="text-muted"><p>We know the new trends of websites. Meeting popular demand, our websites by default look great on any device across. Even this website.</p></span>
</div>
</div>
</div>
I openly allow you to view the page source of the website.
Thank you for any assistance; my dull mind is suffering. :)
You have a min-width of 960px on your .section
Removing that will solve a lot of things. If you do not want your content to stretch to the full width of the window, use a max-width: 960px; instead. Otherwise, just remove the min-width of 960px
Remove .row-fluid and use .row.
Remove align="center" that's old stuff
Use .text-center on the parent of the stuff you want centered (provided it's inline or inline-block elements)
Use .center-block on any block elements (like an .img-responsive).