testimonial section that can be used multiple times

I am looking to create a unique testimonial block design with left and right text icons. This block will be embedded into the markup as a separate block and also integrated into a slider. I am currently using the foundation grid 6, but I plan to use Visual Composer on WordPress. My main concern is making this block responsive and reusable, especially considering that some variants may include logo display options and link toggles. The icons should be placed within span tags and not generated using :after or :before pseudo-elements. For more information, you can visit Codepen

<div class="vc-testimonial text-center">
  <div class="vc-testimonial-logo"><img src="../images/shavlik-logo.png"></div>
  <div class="vc-testimonial-text">
    <h5><span class="icon icon-globe-half"></span><span class="icon icon-globe-half"></span>“60% of organizations that have used Office 365 have found it to be financially beneficial to their organizations”<span class="icon icon-globe-half icon-rotate"></span><span class="icon icon-globe-half icon-rotate"></span></h5>
  </div>
  <div class="vc-testimonial-link"><a class="primary small">Read full story</a></div>
  <div class="vc-testimonial-athor">
    <p>Uģis Peiko, IT speciālists</p>
  </div>
</div>


.vc-testimonial{
  max-width: 75em;
  // margin-left: auto;
  // margin-right: auto;
  padding: rem-calc(60 0);
  &-logo{
    img{
     width: auto;
    }

   }
 &-logo + &-text{
  margin-top: 20px;
  }
 &-text{
   h5 + span {
  // padding-left: rem-calc(55);
  // margin-right: rem-calc(55);
}
span + h5 {
  // padding-left: rem-calc(55);
  // margin-right: rem-calc(55);
  }
}
 &-text + &-link,   &-text + &-athor{
   margin-top: rem-calc(20);
 }

 &-link{

 }
 &-link + &-athor{
  margin-top: rem-calc(20);
 }
 &-athor{

}
}

Answer №1

If someone provides a top-notch solution, it would be fantastic. I utilize flex and alter the structure.

<div class="vc-testimonial text-center">
  <div class="vc-testimonial-logo"><img src="../images/shavlik-logo.png"></div>
  <div class="vc-testimonial-text">
    <div class="vc-testimonial-text--icon"><span class="icon icon-globe-half">$</span><span class="icon icon-globe-half">$</span></div>
    <h5>“60% of organizations that have used Office 365 have found it to be financially beneficial to their organizations”</h5>
    <div class="vc-testimonial-text--icon"><span class="icon icon-globe-half icon-rotate">$</span><span class="icon icon-globe-half icon-rotate">$</span></div>
  </div>
  <div class="vc-testimonial-link"><a class="primary small">Read full story</a></div>
  <div class="vc-testimonial-athor">
    <p><em>Uģis Peiko, IT speciālists</em></p>
  </div>
</div>

Check out the CSS here on Codepen

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to position an element on top of a section of a massive image using CSS?

My current project involves creating a demo of my app within the app itself. To give you an idea, check out the images below: https://i.sstatic.net/J4gbS.png https://i.sstatic.net/OAmwK.png Let me provide some context. The large black rectangle represe ...

When website links are clicked, they receive an unusual border

Encountering issues with CSS on all links. After clicking on a button/link, an unusual border appears (refer to image). Checked all CSS files and did not find any classes associated with this color. View screenshot here ...

Step-by-step guide on implementing a Searchable Select Drop down in HTML and CSS using just a select element

Is there a way to make this select tag searchable? How can I modify this select tag for searching purposes? <div> <select name="code" id="code"> <option value="">Select Code...</option> ...

Despite applying a CSS reset in the modal, the margin-bottom property is still being recognized in Chrome but not in Firefox

Here is a snippet of CSS code that I am currently working with: * { margin: 0; padding: 0; } body { overflow-x: hidden; margin: 0; padding: 0; } .modal { display: none; position: fixed; z-index: 1; left: 0; top: 0; right: 0; bott ...

What steps do I need to take to develop a feature similar to Tabzilla?

Exploring the innovative navigation bar on Mozilla.org seems intriguing; commonly referred to as tabzilla, it smoothly moves down to reveal the menu at the top of the page. I wonder if there are any existing libraries or ready-made jQuery code snippets tha ...

Do not apply hover effect to a particular child div when the hover effect is already applied to the parent

I am encountering a problem with the hover effect. I have 3 child div's structured as follows: <div class="parent"> <div class="child1">A</div> <div class="child2">B</div> <div class="child3">C</div ...

Using JWPlayer 6 and JWPlayer 7 simultaneously in one project - how is it done?

Trying to incorporate both JWPlayer 6 and JWPlayer 7 into my expressJS, AngularJS project has been a challenge. While they each work independently without issue, bringing them together has proven to be tricky. In my index.html file, I include them separat ...

Animating pseudo-elements using Jquery

I'm having trouble animating the :after pseudo-element of my ul. Below is the CSS code I have: #slider .mypagination ul::after { content: ""; width:25%; bottom: 0; left:0; position: absolute; border-top:1px solid #7accc8; ...

Align two containers centrally using absolute positioning inside a division

I am looking for a way to centrally align two "boxes" within a div using CSS. These boxes are positioned absolutely. For reference, here is the JSFiddle link: http://jsfiddle.net/p4sA3/8/ Is there a method to achieve this alignment without specifying spe ...

The nth-child selector is not functioning correctly with material-ui components

Trying to figure out how to give two paragraphs different background colors using nth-child. Here's the JSX: <div className={classes.paragraphs}> <p>Test 1</p> <p>Test 2</p> </div> And the CSS: const useSty ...

Pressing the enter key in the input field will cause the multistep progress bar to update its

When I press Enter in each input field, I want the multi-step progress bar to dynamically update by adding the 'is-active' class to the next list item and removing it from the previous one. How can I achieve this using jQuery? ...

Tips for avoiding a noticeable sliding drawer when changing the direction of an HTML element

I am encountering an issue with the Daisy UI drawer component on my page. When I attempt to change the page direction using a JavaScript function, the drawer animates visibly from left to right or right to left, which is not the desired behavior. I have tr ...

Ways to clear all CSS rules from a class without deleting the class itself using jQuery

Clear out all CSS properties within a class without actually removing the class itself using jQuery For instance : .ui-widget { font-family: Verdana, Arial, sans-serif/*{ffDefault}*/; font-size: 1.1em/*{fsDefault}*/; left: 350 ...

creating a stunning video background that spans 200 viewport heights

My goal is to incorporate a background video for VH1 and VH2 that remains fixed but stops at VH3. When a user opens the page, they will see #VH1 and the #videoBG as a background video. As they continue scrolling, they will reach #VH2 without the backgrou ...

Generate an HTML table from a CSV file with no success in finding a working solution

I came across a solution here However, I am having trouble implementing it. It seems like there might be a basic issue. Can someone provide some advice? This is the snippet of PHP code on my server: $ cat table.php <?php echo "<html><body&g ...

Resizing a scrollable list using React Refs and UseLayoutEffect

Essentially, my issue stems from having a scrollable list with a set maximum height of '100vh'. I also have a detail card beside the list that contains accordion components. When one of these accordions is expanded, it increases the height of the ...

Blending images together can obscure surrounding elements

Is there a way to make two images crossfade on hover without hiding the text underneath? I need the text to show below the image, not behind it. Any suggestions on how to solve this issue? #center { text-align: center; } #under { text-align: cente ...

Disabling the visibility of elements through a transparent sticky-top menu

I'm having an issue with my website design. I have a gradient background and a sticky-top menu on the site. The problem is that when I scroll down, the content appears through the menu, which is not ideal. I don't want to apply the same gradient ...

Conceal Class When Input Value is "X"

Is there a way to dynamically hide a specific seller (<div class="seller">) from a table using CSS and PHP based on a get parameter? Each seller has a unique ID represented by <input type="hidden" value="1" name="seller_id">. For example, if I ...

Extracting a text value from a div using jQuery instead of displaying it in an alert modal

Can someone help me figure out a simple way to display text in a div that indicates what has changed compared to an alert modal with the following code? I'm struggling to understand it. Thanks... $(function(){ var abc = $('selec ...