I've been working on a problem that occured recently and i can't find how to solve it. I'm a beginner so forgive me if my problem is really simple.
<section class="container">
<div class="row">
<div class="col-md-8 text-left">
<div id="filter">
<ul>
<li><i class="icon icon-reorder"></i> All Items</li>
<li><i class="icon icon-th-large"></i> Exemple</li>
<li><i class="icon icon-th-list"></i> Exemple</li>
<li><i class="icon icon-th"></i> Exemple</li>
</ul>
</div>
</div>
<div class="col-md-4 text-right">
<div id="search">
<p>Lorem Ipsum</p>
</div>
</div>
</div>
</section>
<section class="container">
<div id="content">
<div class="row">
<div class="col-md-9">
<div class="boxportfolio3 item cat2 cat3">
<div class="boxcontainer">
<img src="../img.jpg" alt="">
<div class="roll">
<div class="wrapcaption">
<i class="icon-link captionicons"></i>
<a data-gal="prettyPhoto[gallery1]" href="../img.jpg" title="Exemple"><i class="icon-zoom-in captionicons"></i></a>
</div>
</div>
<h1>Exemple</h1>
<p>
Exemple
</p>
</div>
</div>
<!-- box 2 -->
<div class="boxportfolio3 item cat1">
<div class="boxcontainer">
<img src="../img.jpg" alt="">
<div class="roll">
<div class="wrapcaption">
<i class="icon-link captionicons"></i>
<a data-gal="prettyPhoto[gallery1]" href="../img.jpg" title="Exemple"><i class="icon-zoom-in captionicons"></i></a>
</div>
</div>
<h1>Exemple</h1>
<p>
Exemple
</p>
</div>
</div>
<!-- box 3 -->
<div class="boxportfolio3 item cat2 cat3">
<div class="boxcontainer">
<img src="../img.jpg" alt="">
<div class="roll">
<div class="wrapcaption">
<i class="icon-link captionicons"></i>
<a data-gal="prettyPhoto[gallery1]" href="../img.jpg" title="Exemple"><i class="icon-zoom-in captionicons"></i></a>
</div>
</div>
<h1>Exemple</h1>
<p>
Exemple
</p>
</div>
</div>
<!-- box 4 -->
<div class="boxportfolio3 item cat1">
<div class="boxcontainer">
<img src="../img.jpg" alt="">
<div class="roll">
<div class="wrapcaption">
<i class="icon-link captionicons"></i>
<a data-gal="prettyPhoto[gallery1]" href="../img.jpg" title="Exemple"><i class="icon-zoom-in captionicons"></i></a>
</div>
</div>
<h1>Exemple</h1>
<p>
Exemple
</p>
</div>
</div>
</div>
<div class="col-md-3">
<div class="text-side">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac velit luctus, pharetra magna eu, auctor purus.</p>
</div>
</div>
</div>
</div>
</section>
Now since i want my block to be divided in 2 I used a col-md-9 and a col-md-3.
What i get is this : http://image.noelshack.com/fichiers/2015/20/1431873111-resultat.jpg
What i had and what i would like is this : http://image.noelshack.com/fichiers/2015/20/1431873148-attente.jpg
I want my boxcontainer to fill the full space of the col-md-9, but there is this blank space that I cannot fill and I don't know why.
I hope i was clear enough since english is not my native language, and since i'm still a beginner in programming. I'd be happy to hear advices from you.
It seems you have defined margins for your "box" items. This means that the width of the div with id="content" is now small to contain your box items plus their margins. try removing any margins
Related
I want to make a more compact , but the compact attribute doesn't work in the structure I am using.
Can someone help me lessen the vertical "margin" of each li?
Code Snippet
<main id="main-canvas" style="padding-left: 120px">
<div class="row">
<div class="row" style="width:100%">
<div class="col-9" style="padding-left:0px">
<div class="row">
<ul style="padding-left:25px" compact>
<li><b class="content">123: </b>
<p class="secondary-content">Lorem</p>
</li>
<li><b class="content">456</b>
<p class="secondary-content"> ipsum dolor sit</p>
</li>
<li><b class="content">789</b>
<p class="secondary-content">amet consecituir or something like that I don't know I don't care</p>
</li>
</ul>
</div>
<div class="row">
<h3>Some stuff</h3>
</div>
<p class="secondary-content">Some secondary content</p>
</div>
<div class="col-3">
<div class="row">
<h3 id="sidemenu-h">sidemenu</h3>
</div>
</div>
</div>
</div>
</main>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap#4.5.3/dist/css/bootstrap.min.css">
All right, no one wants to answer so I will do it.
Both #Yogi and #jme11 were right - removing the margin on <p> tag coupled with setting the line-height on the ul while removing the compact attribute did the trick.
The final html:
<ul style="padding-left:25px; line-height:18px">
<li><b class="content">123: </b>
<p class="secondary-content" style="margin-bottom:0px">Lorem</p>
</li>
<li><b class="content">456</b>
<p class="secondary-content" style="margin-bottom:0px"> ipsum dolor sit</p>
</li>
<li><b class="content">789</b>
<p class="secondary-content" style="margin-bottom:0px">amet consecituir or something like that I don't know I don't care</p>
</li>
</ul>
I am trying to display 4 similar cards in a grid. I am able to create the columns however the card actions only apply to the first one. (On click, an overlay appears with a 'view details' button and a further description about the product).
On hovering over the other 3 cards, nothing happens. Only the first one works.
<div class="container_grid">
<div class="row">
<div class="col-3">
<div id="product-card" style="margin: 1rem">
<div id="product-front">
<div class="shadow"></div>
<img src="https://veenaazmanov.com/wp-content/uploads/2019/08/Chocolate-Birthday-Cake5-500x500.jpg" alt="" />
<div class="image_overlay"></div>
<div id="view_details">View details</div>
<div class="stats">
<div class="stats-container">
<span class="product_price">Ksh.500</span>
<span class="product_name">Chocolate Cake</span>
<p>Tasty cake</p>
<div class="product-options">
<strong>Available in</strong>
<span>1kg, 2kg, 3kg, 4kg, 5kg</span>
<button class="btn">Add To Cart</button>
<!-- <div class="cart_btn"><p>Add to Cart</p></div> -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-3">
<div id="product-card" style="margin: 1rem">
<div id="product-front">
<div class="shadow"></div>
<img src="https://veenaazmanov.com/wp-content/uploads/2019/08/Chocolate-Birthday-Cake5-500x500.jpg" alt="" />
<div class="image_overlay"></div>
<div id="view_details">View details</div>
<div class="stats">
<div class="stats-container">
<span class="product_price">Ksh.500</span>
<span class="product_name">Chocolate Cake</span>
<p>Tasty cake</p>
<div class="product-options">
<strong>Available in</strong>
<span>1kg, 2kg, 3kg, 4kg, 5kg</span>
<button class="btn">Add To Cart</button>
<!-- <div class="cart_btn"><p>Add to Cart</p></div> -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
What could be the problem?
Link to the full JFiddle https://jsfiddle.net/5yoerguh/1/
The problem is you use id for div, need change it to class
or use this selector $('.col-3 > div').hover(function(){}
https://jsfiddle.net/viethien/2nesgtLy/1/
I want the text length to shrink when the screen gets smaller
<div class="dress-card hvr-bob">
<div class="dress-card-head">
<img class="dress-card-img-top" src="img/rdr2.jpg" alt="">
</div>
<div class="dress-card-body">
<h2 class="dress-card-title">Red Dead Redemption 2</h2>
<p class="dress-card-para">Social Club Key</p>
<p class="dress-card-para"><span class="dress-card-price">200TL </span>
<!--<span class="dress-card-crossed">300TL</span><span class="dress-card-off"> İndirim!</span>--></p>
<div class="row">
<div class="col-md-6 card-button">
<a style="text-decoration: none;" href="">
<div class="card-button-inner bag-button"><i class="fas fa-shopping-cart"></i> Satın Al</div>
</a>
</div>
<div class="col-md-6 card-button">
<a style="text-decoration: none;" href="">
<div class="card-button-inner wish-button"><i class="fas fa-shopping-basket"></i> Sepete Ekle</div>
</a>
</div>
</div>
</div>
</div>
</div>
help
Add font-size:8vw; to your CSS. You can add it to p or specific for a class or id.
You can change the 8 to any number you want.
I hope thats what you searching :)
I am new to ionic. I am converting an existing angular app into mobile app using ionic framework. But, I can't add a side menu to this. How do I do that.
Here's my code:
<div class="wrap">
<div class="header">
<div class="pull-right">
<a href="#" class="handle"><i class="fa fa-bars">
</i></a>
</div>
<div class="text-center">
<h1>SKY</h1>
</div>
</div>
<div class="items-list">
<div class="item">
<div class="clearfix">
<div class="item-thumb-container">
<img src="images/item-1.jpg" class="item-thumb img-responsive">
</div>
<div class="item-details-container">
<h2 class="item-title">Item Name</h2>
<div class="item-description">
<p>Lorem ipsum dolor sit amet, sit qualibo beloi refashi ispuias.</p>
</div>
<div class="item-meta">
See
<span class="qty">10 <i class="fa fa-glass" aria-hidden="true"></i></span>
<span class="price">9 SAR <span class="round"><i class="fa fa-dollar" aria-hidden="true"></i></span></span>
</div>
</div>
</div>
</div>
<div class="item item-img-right">
<a href="#" ui-sref="single">
<div class="clearfix">
<div class="item-details-container">
<h2 class="item-title">Item Name</h2>
<div class="item-description">
<p>Lorem ipsum dolor sit amet, sit qualibo beloi refashi ispuias.</p>
</div>
<div class="item-meta">
<span class="item-btn">See</span>
<span class="qty">10 <i class="fa fa-glass" aria-hidden="true"></i></span>
<span class="price">9 SAR <span class="round"><i class="fa fa-dollar" aria-hidden="true"></i></span></span>
</div>
</div>
<div class="item-thumb-container">
<img src="images/item-1.jpg" class="item-thumb img-responsive">
</div>
</div>
</a>
</div>
<div class="item">
<a href="#" ui-sref="single">
<div class="clearfix">
<div class="item-thumb-container">
<img src="images/item-1.jpg" class="item-thumb img-responsive">
</div>
<div class="item-details-container">
<h2 class="item-title">Item Name</h2>
<div class="item-description">
<p>Lorem ipsum dolor sit amet, sit qualibo beloi refashi ispuias.</p>
</div>
<div class="item-meta">
<span class="item-btn">See</span>
<span class="qty">10 <i class="fa fa-glass" aria-hidden="true"></i></span>
<span class="price">9 SAR <span class="round"><i class="fa fa-dollar" aria-hidden="true"></i></span></span>
</div>
</div>
</div>
</a>
</div>
</div>
</div>
I want to show the side menu when the button to the right is clicked. I have tried adding <ion-sidemenus> but it shows the menu list items outside.
Ionic calls this MenuToggle which can be easily implemented by a single line of code
<button ion-button menuToggle>Toggle Menu</button>
Read more about MenuToggle on the official docs.
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>