Mozilla Firefox shows different positions of pictures - html

I am building a website using Twitter Bootstrap. I have divided the page content into 4 parts - 1. is a headline (col-sm-4), 2.,3.,4 are pictures (col sm-2, col-sm-2, col-sm-4). I have made a CSS class to pull pictures down. I want them to be in one row next to the H3 headline Obrazky:. Every browser shows it exactly as I want except for Mozzila which puts those three images next to the whole webpage. I need to fix that.
HTML
<div class="col-sm-4">
<br>
<h3>Obrázky:</h3>
</div>
<div class="col-sm-2 pull-down">
<br><br>
<img src="img/mobil.png" alt="mobil" class="img-responsive img-center">
<p class="text-center"><strong>Zobrazení na mobilu</strong></p>
<br>
</div>
<div class="col-sm-2 pull-down">
<img src="img/tablet.png" alt="tablet" class="img-responsive img-center">
<p class="text-center"><strong>Zobrazení na tabletu</strong></p>
<br>
</div>
<div class="col-sm-4 pull-down">
<img src="img/notebook.png" alt="notebook" class="img-responsive img-center">
<p class="text-center"><strong>Zobrazení na notebooku</strong></p>
<br>
</div>
CSS
.pull-down {
float: none;
display: table-cell;
vertical-align: bottom;
}

Try this:
<div class="container">
<div class="row">
<div class="col-sm-4">
<br>
<h3>Obrázky:</h3>
</div>
<div class="col-sm-2 pull-down">
<br><br>
<img src="img/mobil.png" alt="mobil" class="img-responsive img-center">
<p class="text-center"><strong>Zobrazení na mobilu</strong></p>
<br>
</div>
<div class="col-sm-2 pull-down">
<img src="img/tablet.png" alt="tablet" class="img-responsive img-center">
<p class="text-center"><strong>Zobrazení na tabletu</strong></p>
<br>
</div>
<div class="col-sm-4 pull-down">
<img src="img/notebook.png" alt="notebook" class="img-responsive img-center">
<p class="text-center"><strong>Zobrazení na notebooku</strong></p>
<br>
</div>
</div>
</div>

Related

How to use inline-block

I have some ads I want placing side by side and making all the same size but, whilst float: left works to get them to float left, display: inline-block, which should stack them in a grid side by side, and max-width doesn't.
Tried Css
#media (min-width: 768px){.box-
layout {max-width: 100%; float:
left; display: inline-block;}}
This, as mentioned, floats left but doesn't place side by side or make all the ads the same size. It also throws up a css lint obstruction that float and display can not be used together.
https://adsler.co.uk/find-an-event/
HTML:
<div class="line-layout"
style="display: none;">
<li class="event_listing post-6985
type-event_listing status-expired
hentry" style="visibility:
visible;" data-latitude="" data-
longitude="">
<div class="event-
info-row-listing">
<a href="https://adsler.co.uk/
event/new-cross-and-deptford-free-
film-festival/">
<div class="row"><div class="col-
md-1">
<div class="organizer-logo">
<img alt="Deptford Film Festival"
src="https://adsler.co.uk/wp-
content/uploads/event-manager-
uploads/event_banner/2019/05/2
456d41f16399aed538d25b1cd32ad1
4.jpg">
</div>
</div><div class="col-md-4">
<div class="event-title">
<h4>New Cross and
Deptford Free Film Festival</h4>
<div class="boxes-view-
listing-
registered-code">
</div>
<div class="event-
organizer-
name">
<normal>Deptford Film Festival
<normal></normal>
</normal>
</div>
</div>
<div class="col-md-2">
<div class="date"
<date>2019-05-26</date>
</div>
</div>
<div class="col-md-3">
<div class="event-
location"><i class="glyphicon
glyphicon-map-
marker"></i> London </div>
</div>
<div class="col-md-2">
<div class="event-
ticket">#free</div>
</div>
<div class="col-md-3">
</div>
</div>
</a>
</div>
</li>
</div>
<!-- Box Layout -->
<a class="event_listing post-6985
type-event_listing status-expired
hentry" href="https://adsler.co.uk
/event/new-cross-and-deptford-free-
film-festival/">
<div class="box-layout">
<div class="event-img"><img
alt="Deptford Film Festival"
src="https://adsler.co.uk/wp-
content/uploads/event-manager-
uploads/event_banner/2019/05/2
456d41f16399aed538d25b1cd32
ad14.jpg"></div>
<div class="boxes-view-box-
registered-code">
</div>
<div class="event-title">
New Cross and Deptford Free Film
Festival
</div>
<div class="event-start-
date">2019- 05-26
</div>
<div class="event-location">
<i class="glyphicon glyphicon-
map-
marker"></i> London </div>
<div class="box-footer">
<div class="event-
ticket">#free</div>
</div>
</div>
</a>
your html and css are quite chaotic.
I made an example how it should be and how it works.
Ps. don't pay attention to
max-width:800px;
thats just for demo purposes.
https://codepen.io/anon/pen/QXWLrg
Hope it helps you out!

How to Create 4 Grid Blocks in bootstarp with full width

How could I possibly create four grid blocks with height and width in percentage so it could automatically resize on mobile, below is the image of what i am talking about.
I mean - 4 grid blocks , one big one at the left , and one at the right top, with the remaining two juts below the second grid block, trust me this is how best i can explain this, i would so much love and appreciate your Help.
<div class="the-home-big-grid">
<div class="the-real-big-grid">
<div class="first-big-guy">
<img src="assets/img/7.jpg" class="img-responsive" />
<div class="biggrid-overlay">
<div class="before-big-grid-overlay-content">
</div>
<p class="the-big-grid-overlay-cat">
Web Designing
</p>
<h2 class="biggrid-the-featured-title">
The Diffrent typs of Desk there is
</h2>
<div class="the-big-grid-featred-post-data">
<img src="assets/img/avatar2.jpg" class="the-auth-post-image-featured" />By Neon Emmanuel <span class="the-featured-post-date"> <i class="fa fa-clock-o the-featured "></i>3rd Dec 2016</span>
</div>
</div>
</div>
</div>
<div class="secound-big-guy">
<img src="assets/img/2.jpg" class="img-responsive" />
<div class="secound-biggrid-overlay">
<div class="before-secound-grid-overlay-content">
</div>
<p class="the-secound-grid-overlay-cat">
Web Designing
</p>
<h2 class="secound-the-featured-title">
The Diffrent typs of Desk there is
</h2>
<div class="the-secound-grid-featred-post-data">
<img src="assets/img/avatar2.jpg" class="the-auth-post-image-featured" />By Neon Emmanuel <span class="the-featured-post-date"> <i class="fa fa-clock-o the-featured "></i>3rd Dec 2016</span>
</div>
</div>
</div>
<div class="third-big-guy">
<img src="assets/img/1.jpg" class="img-responsive" />
<div class="third-biggrid-overlay">
<div class="before-third-grid-overlay-content">
</div>
<p class="the-third-grid-overlay-cat">
Web Designing
</p>
<h2 class="third-the-featured-title">
The Diffrent typs of Desk there is
</h2>
<div class="the-third-grid-featred-post-data">
<img src="assets/img/avatar2.jpg" class="the-auth-post-image-featured" />By Neon Emmanuel <span class="the-featured-post-date"> <i class="fa fa-clock-o the-featured "></i>3rd Dec 2016</span>
</div>
</div>
</div>
</div>
</div>
</div>
Image
Below is the image of what i meain
Here's Bootply: http://www.bootply.com/JlOEZaBkNs
<div class="row">
<div class="col-xs-6">A
</div>
<div class="col-xs-6">
<div class="row">
<div class="col-xs-12">B</div>
</div>
<div class="row">
<div class="col-xs-6">C</div>
<div class="col-xs-6">D</div>
</div>
</div>
</div>

Header misbehave on longer title

I have problem with misbehaving header:
Code looks like this:
<div class="row row-grid">
<div class="col-sm-6 col-md-4 col-lg-4 col-xl-3">
<div class="box">
<div class="col-sm-12">
<h2 class="pull-right"><span class="label label-warning">1</span></h2>
<h3 class="pull-left shadow">
Piotrek z Bagien
<br>
<span><h4 class="gray shadow">Pinta</h4></span>
<span><h6 class="gray shadow">India Pale Ale (Poland)</h6></span>
</h3>
</div>
</div>
<div class="" id="sub-row">
<span class="col-sm-6 white-text">7 zł / 9 zł / 12 zł</span>
<span class="col-sm-6 white-text">5.2%/90 IBU</span>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-4 col-xl-3">
<div class="box">
<div class="col-sm-12">
<h2 class="pull-right"><span class="label label-warning">1</span></h2>
<h3 class="pull-left shadow">
Piotrek z Bagien India Pale Ale
<br>
<span><h4 class="gray shadow">Pinta</h4></span>
<span><h6 class="gray shadow">India Pale Ale (Poland)</h6></span>
</h3>
</div>
</div>
<div class="" id="sub-row">
<span class="col-sm-6 white-text">7 zł / 9 zł / 12 zł</span>
<span class="col-sm-6 white-text">5.2%/90 IBU</span>
</div>
</div>
</div>
What I want to achieve is to concat String with "..." if too long or other elegant solution that won't destroy whole layout.
edit: Almost there thanks to answer. Now it looks like this:
and I have two questions:
why left side of the concatenated text lost it's shadow?
how to make it work when screen gets smaller?
You can make trailing dots with something like this:
HTML
<div class="toolong">
this text is just too loooooooooooooooooooooooooong
</div>
CSS:
.toolong {
width: 300px;
overflow:hidden;
white-space:nowrap;
text-overflow: ellipsis;
}
http://jsfiddle.net/jguaxbsg/

Why not my link on the mobile?

I have this site:
http://infine-traiteur.ch/
We have 4 elements on the first page (I put a picture to understand that I mean)
http://i57.tinypic.com/288silx.jpg
If we click on a particular image (the high resolution) everything works, if you resize the window and reach the mobile links these 4 elements only and do not understand why it works.
This is code HTML:
<div class="row">
<div class="carouselspaceholder"> </div>
<div class="six columns">
<div class="cro_fpc cro_fpbig">
<div class="cro_backgroundmask"> </div>
<img class="attachment-fc1 wp-post-image" alt="front (3)" src="http://infine-traiteur.ch/wp-content/uploads/2014/09/front-3.jpg" height="340" width="465">
<div class="fptitles">
<h3 class="fptitle cro_accent">
Commandez-votre service traiteur
</h3>
</div>
<div class="slidelinkspan">
Plus d'infos
</div>
</div>
<div class="cro_fpc cro_fpsmall">
<div class="cro_backgroundmask"> </div>
<img class="attachment-fc2 wp-post-image" alt="front (1)" src="http://infine-traiteur.ch/wp-content/uploads/2014/09/front-1.jpg" height="170" width="465">
<div class="fptitles">
<h3 class="fptitle cro_accent">
Nos partenaires
</h3>
</div>
<div class="slidelinkspan">
Plus d'infos
</div>
</div>
</div>
<div class="six columns">
<div class="cro_fpc cro_fpsmall">
<div class="cro_backgroundmask"> </div>
<img class="attachment-fc2 wp-post-image" alt="front (1)" src="http://infine-traiteur.ch/wp-content/uploads/2014/09/front-1.png" height="170" width="465">
<div class="fptitles">
<h3 class="fptitle cro_accent">
Rejoignez-nous sur Facebook
</h3>
</div>
<div class="slidelinkspan">
Plus d'infos
</div>
</div>
<div class="cro_fpc cro_fpbig">
<div class="cro_backgroundmask"> </div>
<img class="attachment-fc1 wp-post-image" alt="front (2)" src="http://in-fine.dg-site.com/wp-content/uploads/2014/09/front-2.jpg" height="340" width="465">
<div class="fptitles">
<h3 class="fptitle cro_accent">
Suggestions de la semaine
</h3>
</div>
<div class="slidelinkspan">
Plus d'infos
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
Can you help me to solve this problem please?
Thanks in advance!
Lines from 4627 to 4643 in your site.css file (Media queries for mobile)
Remove or comment this lines.

Border & Padding not showing/working on .row-fluid class in bootstrap?

I'm using bootstrap for my first major product, I've merely played around with it in the past, now I have the following in my HTML view (this is indicative of the structure and is repeated, it's just an example to show how I have a div.row-fluid and 2 or 1 child divs)
<div id="menuWrapper" >
<div class="row-fluid">
<div class="col-xs-9 menu-detail">
Vorspeisen
</div>
<div class="col-xs-3 selected-orange text-right">
ab 2.80 €
</div>
</div>
<div class="row-fluid">
<div class="col-xs-9">
Hausgemachter Griebenschmalz auf Schrotbrot
<span class="grey-subtext">Portion mit Spreewald - Gurke</span>
</div>
<div class="col-xs-3 text-right">
3.80 €
</div>
</div>
<div class="row-fluid">
<div class="col-xs-9">
Hausgemachter Griebenschmalz auf Harzer Käze
<span class="grey-subtext">Portion mit Spreewald - Gurke</span>
</div>
<div class="col-xs-3 text-right">
3.80 €
</div>
</div>
<div class="row-fluid menu-header">
<div class="col-xs-9 menu-detail">
Hauptspeisen
</div>
<div class="col-xs-3 selected-orange text-right">
ab 12.80 €
</div>
</div>
<div class="row-fluid">
<div class="col-xs-9">
Ragu alla Bolognese
<span class="grey-subtext">mit orginal Parmesan Käse</span>
</div>
<div class="col-xs-3 text-right">
7.80 €
</div>
</div>
<div class="row-fluid">
<div class="col-xs-9">
Fish & Chips
<span class="grey-subtext">mit orginal Mushy-Erbse </span>
</div>
<div class="col-xs-3 text-right">
10.80 €
</div>
</div>
<div class="clearfix"></div>
<div class="row-fluid">
<div class="col-xs-9">
Beriner Teller
<span class="grey-subtext">Bulette mit Kartoffelsalat, hausgemachter Art mit Jogurt-Dressing und original Spreewalk-Gurke</span>
</div>
<div class="col-xs-3 text-right">
9.80 €
</div>
</div>
<div class="clearfix"></div>
<div class="row-fluid">
<div class="col-xs-9 menu-detail">
Dessert
</div>
<div class="col-xs-3 selected-orange text-right">
ab 2.90 €
</div>
</div>
<div class="row-fluid">
<div class="col-xs-9">
Alt Deutscher Käsekuchen
</div>
<div class="col-xs-3 text-right">
ab 2.90 €
</div>
</div>
<div class="row-fluid">
<div class="col-xs-9">
Alt Britisch Käsekuchen
</div>
<div class="col-xs-3 text-right">
ab 2.90 €
</div>
</div>
<div class="row-fluid">
<div class="col-xs-12 text-center menu-close">
<span class="icon-close"></span>
Close
</div>
</div>
</div>
Now for some reason should I try to add a border-bottom and padding to the class="row-fluid" divs these are not shown, for example I have something like this in my CSS:
#menuWrapper .row-fluid {
padding-top: 5px;
padding-bottom: 5px;
border-bottom: 1px solid black;
}
even if I have no Div with an ID to isolate the styles the styles are not applied. It's as if the contents of the .row-fluid is overflowing out of the DIVs. If I want to add the border or padding on the row I have to apply it to the children divs with the styles class="col-xs-* Obviously I don't want to do this due to the repetition or classes. Does anyone know what I am doing wrong as I have no conflicting css (that I can isolate) that is producing this issue? Perhaps it is a lack of understanding on my part? But even if I remove all my CSS and apply the above css exclusively my view still doesn't produce the border and padding I want?
Try adding overflow:hidden to row-fluid
Fiddle
Css
#menuWrapper .row-fluid {
padding-top: 5px;
padding-bottom: 5px;
border-bottom: 1px solid black;
overflow:hidden;
}
for convenience, you can create your own style file, it has to override properties of an existing class, or create a class with the necessary parameters
<div class="row-flud your klass">
<div class="col-xs-9">
Hausgemachter Griebenschmalz auf Schrotbrot
<span class="grey-subtext"> Portion mit Spreewald - Gurke </ span>
</ div>
<div class="col-xs-3 text-right">
3.80 €
</ div>
</ div>