How do I position the icon to the right of the heading?

How do I position the icon to the right of the heading?

Content Index :

How do I position the icon to the right of the heading?
Tag : html , By : Myatus
Date : January 12 2021, 08:33 AM

I wish this help you One option is to use flexbox. You can add display: flex to the container (.feature). Add flex: 1 to the text. To create some space around the icon you can use a margin value you find suitable.
.feature {
  position: relative;
  border: 1px solid #000;
  /* for demo */
  text-align: right;
  display: flex;

.text {
  flex: 1;

.circle {
  height: 2.5rem;
  width: 2.5rem;
  background-color: #64beeb;
  border-radius: 50%;
  margin: 1rem;

.icon {
  font-size: 1.75rem;
  color: #fff;
<div class="feature">
  <div class="text text-right">
    <p class="h2">Diversity of Content</p>
    <p class="descrip">Dive deep and share themed content across various topics based on your audience</p>
  <div class="circle text-center">
    <i class="icon ion-android-bulb"></i>

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

how to get both icon and heading in same line in css

Tag : html , By : PepeM
Date : March 29 2020, 07:55 AM
hop of those help? I want to icon and the headings in the same line like this: , I think you want to float the icon:
.icon-small i {
    float: left;
    margin-right: 10px;
    /* ... */
.icon-small + p {
    clear: left;
    /* ... */

How to center a heading with an icon horizontally, ignoring the icon

Tag : html , By : kakashi_
Date : March 29 2020, 07:55 AM
this will help Your question is a little bit misleading. Your real issue is happening inside heading, thai is not a flex element.
You can just add a margin-left of the same size of the image to this element:
.heading {
  margin: 0px 30px;
  text-align: center;
  position: relative;

.fa {
  position: absolute;
  right: -30px;
  top: 30px;

.wrapper {
  border: 1px solid red;
  display: flex;
  flex-direction: column;
  align-items: center;
.image {
  height: 100px;
  width: 100px;
  background-color: blue;
  border-radius: 65px;
.title {
  font-size: 50px;
.description {
  padding: 15px;
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet"/>
<div class="container">
  <div class="wrapper">
    <div class="image"></div>
    <div class="heading">
      <span class="title">racecar racecar racecar</span>
      <span class="fa fa-lg fa-car">
    <div class="description">
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam tortor dolor, varius a convallis ut, tincidunt non turpis. Nam gravida.
  <div class="wrapper">
    <div class="image"></div>
    <div class="heading">
      <span class="title">kayak kayak kayak</span>
      <span class="fa fa-lg fa-car">
    <div class="description">
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam pellentesque euismod efficitur. Quisque vitae gravida dolor. Fusce et dui quis arcu sagittis sodales. Vivamus tincidunt orci et neque pulvinar, a aliquam diam tristique. Curabitur lacinia
      nibh est, id cursus ligula mollis eu. Nullam suscipit nisi vel euismod bibendum. Duis congue.
  <div class="wrapper">
    <div class="image"></div>
    <div class="heading">
      <span class="title">rotor rotor rotor</span>
      <span class="fa fa-lg fa-car"></span>
    <div class="description">
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et dui quis arcu sagittis sodales. Vivamus tincidunt orci et neque pulvinar, a aliquam diam tristique. Curabitur lacinia nibh est, id cursus ligula mollis eu. Nullam suscipit nisi vel euismod
      bibendum. Duis congue.

Icon rotation based on heading update staying in same heading

Tag : javascript , By : lwl_seu
Date : March 29 2020, 07:55 AM
I hope this helps . Hello bellow is the snippet of the offending code. Within the JSON file is a value.track which is setting a map marker icon using marker rotation. Problem is that the icon rotation stays the same as what is was first told. I.E when first loaded the heading is 360 then the aircraft turns to 180 it will not rotate the Icon to match the heading unless I refresh the page. I would guess this could be fixed with a "var" some where but not sure where. My apologies if this is not very clear I am very new to Java Script. In other words the marker position update but not the marker rotation! , Update the icon for the marker when you update its position:
if (markers[value.hex]) {
} else {
  // create new
  markers[value.hex] = new google.maps.Marker({
    position: myLatlng,
    icon: getIconForPlane(value),
    map: map,
    title: "Callsign: " + value.flight + ", Altitude: " + value.altitude
  infoWindows[value.hex] = createInfoWindow(value, markers[value.hex],map);

How to make react-native-maps animateCamera change heading from last heading to new heading

Tag : react-native , By : B3CFT
Date : March 29 2020, 07:55 AM
like below fixes the issue I have found the answer. I need to use initialCamera props in MapView component instead of using initialRegion. Then I use animateCamera method to change the map coordinate and heading.

Add font awesome icon before heading?

Tag : html , By : hellboy32
Date : March 29 2020, 07:55 AM
Related Posts Related QUESTIONS :
  • How do I display TypeScript code in "<code>" tags in an Angular app?
  • How can I change the color of input tag in a form when focusing on it?
  • How do I put a container in a fixed position with its own overflow?
  • How to fix text-alignment
  • Outlook not displaying a portion of HTML
  • Remove radio button text only with CSS
  • How to use "v-if" in Vue.js to render a <span> only if parent div has a specific property?
  • How to Extract just the Date from Angular Material Datepicker
  • @keyframes not working, I have tried everything i can think of
  • Bootstrap fix form to bottom of the page
  • How to hide a list element in html
  • How to stop repeating image
  • How do I prevent the GET method from encoding HTML special characters in the URI?
  • CSS/HTML: How do I change the color of the check mark within the checkbox input?
  • attaching a file path in a html form
  • Flip <canvas> (rotate 180deg) after being published on page
  • Is there an application I can show a client the speed of their site via differring internet connections?
  • Html / Email / Distribution list problem from a noob
  • Inspiring web experiments and technical demos
  • Can I load javascript code using <link> tag?
  • Lisp-style quotation in HTML
  • How to put text float around image like some newspapers' format using CSS?
  • Technical reasons for not having large background images in websites
  • HTML 5 Structure tags demo
  • Angular - String interpolation of undefined variable
  • Is there any way to edit specific Column of table using mat-table in Angular material
  • How can I set a text as a shadow for a heading element?
  • How to fix the forms making the buttons overlap
  • Splitting XML into multiple HTML pages with XSLT?
  • How to justify empty divs in flex container
  • How to blur in CSS only one layer of when you have multiple layers in background-image?
  • Scrollable html table with fixed first row and first column, along with angular material controls within the cells of ta
  • In Django, how to extract ID attribute from html Input tag, WITHOUT using django forms
  • how to fix link tag in html after changing css
  • How do I add a top padding to the second row?
  • Is it possible to split XML into multiple HTML pages with page navigation?
  • AngularJS: responsive height in bootstrap
  • Hide second line of text with CSS
  • repeating-linear-gradient not working in Edge browser and internet Explorer Browser
  • how to make search and form category merges like amazon on bootstrap
  • Bootstrap: Rearranging rows into columns and changing the order of elements
  • How can I move a label under a text box?
  • How save LinearGradient To database
  • How to reposition an image with a linear gradient using css?
  • HTML audio will not play when page opened by batch file
  • CSS Three Tone Diagonal Background
  • How to use slots inside of template components in HTML
  • Using span tags in meta description & title, for dual languages
  • How to make an icon/span selectable by pressing Tab key?
  • Add dynamic margins using UI Kit
  • Add margin-top to textbox
  • What is the correct semantic HTML markup for a title (book, movie, etc.), according to the spec? Is it an <em> tag
  • How to make an animation in Geoserver or in Leaflet
  • Buttons overlapping when shrinking window
  • Stretch an element to the end of the automatically calculated grid, not just the explicit grid
  • What relation is there between Angular's <ng-content> and ShadowDOM
  • CSS background for div element is not working
  • CSS Marquee: multiple paragraphs overlaps
  • I want to align search bar to extreme right
  • Getting blank white space to the left of content inside pre tags
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com