how to get both icon and heading in same line in css
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">
</span>
</div>
<div class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam tortor dolor, varius a convallis ut, tincidunt non turpis. Nam gravida.
</div>
</div>
<div class="wrapper">
<div class="image"></div>
<div class="heading">
<span class="title">kayak kayak kayak</span>
<span class="fa fa-lg fa-car">
</span>
</div>
<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>
</div>
<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>
<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.
</div>
</div>
</div>
|
Icon rotation based on heading update staying in same heading
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]) {
markers[value.hex].setPosition(myLatlng);
markers[value.hex].setIcon(getIconForPlane(value));
infoWindows[value.hex].setContent(text(value));
} 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
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
|