Search
 
SCRIPT & CODE EXAMPLE
 

CSS

responsive testimonial slider html css

<!-- credit: w3schools
========================= -->

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.container {
  border: 2px solid #ccc;
  background-color: #eee;
  border-radius: 5px;
  padding: 16px;
  margin: 16px 0
}

.container::after {
  content: "";
  clear: both;
  display: table;
}

.container img {
  float: left;
  margin-right: 20px;
  border-radius: 50%;
}

.container span {
  font-size: 20px;
  margin-right: 15px;
}

@media (max-width: 500px) {
  .container {
      text-align: center;
  }
  .container img {
      margin: auto;
      float: none;
      display: block;
  }
}
</style>
</head>
<body>

<h2>Responsive Testimonials</h2>
<p>Resize the browser window to see the effect.</p>

<div class="container">
  <img src="/w3images/bandmember.jpg" alt="Avatar" style="width:90px">
  <p><span>Chris Fox.</span> CEO at Mighty Schools.</p>
  <p>John Doe saved us from a web disaster.</p>
</div>

<div class="container">
  <img src="/w3images/avatar_g2.jpg" alt="Avatar" style="width:90px">
  <p><span>Rebecca Flex.</span> CEO at Company.</p>
  <p>No one is better than John Doe.</p>
</div>

</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Css :: screen only in css 
Css :: mdn css marker 
Css :: wow animation run in multiple times at once 
Css :: cons;0 ccs 
Css :: enable gutenberg for post 
Css :: Protéger les fichiers .htaccess et .htpasswds 
Css :: if child elemnt is hovered do changes to the container css 
Css :: showing danger message in red in terminal bash 
Css :: target css selector 
Css :: react-responsive modal flashes after closing 
Css :: css geight 
Css :: css how to transform and stay on top of page 
Css :: remove focous:visible 
Css :: Définir le nombre minimum de mots sur les publications WordPress 
Css :: cursor css tickes 
Css :: long text coming out of the block 
Css :: tf.reduce_mean(y_true,y_predicted) 
Css :: is css easy? 
Css :: saas mixin 
Css :: cop pics css 
Css :: roam research 
Css :: set default scroll position css 
Css :: what is integrity cdn 
Css :: hyper text programming language 
Css :: css transition büyütme 
Css :: vw css 
Css :: css difference between class and id 
Css :: activate_bin_path 
Typescript :: mat-select change event 
Typescript :: increase size of mat dialog 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =