Is it possible to change the Google Maps Drawing manager icons? - google-maps-api-3

I'm looking to implement a Google Maps polygon select tool for use on multiple devices.
The default Drawing Manager icons (the hand, the polygon draw tool) are fine on desktop machines, but they are really fiddly to use on and android device. Can anyone tell me if it's possible to override the default icon set (http://maps.gstatic.com/mapfiles/drawing.png)
I suppose I could override css and html specifically, but would love to know if there is an better way before going down that path.
Thanks in advance.

This is what I use to modify the buttons, it should give you a starting point, once you ID everthing, changing the CSS is easy..
$(".gmnoprint").each(function(){
var newObj = $(this).find("[title='Draw a circle']");
newObj.parent().addClass("remove");
// ID the toolbar
newObj.parent().parent().attr("id", "btnBar");
// Now remove the Circle button
$(".remove").remove();
// ID the Hand button
newObj = $(this).find("[title='Stop drawing']");
newObj.attr('id', 'btnStop');
// ID the Marker button
newObj = $(this).find("[title='Add a marker']");
newObj.attr('id', 'btnMarker');
// ID the line button
newObj = $(this).find("[title='Draw a line']");
newObj.attr('id', 'btnLine');
// ID the Rectangle Button
newObj = $(this).find("[title='Draw a rectangle']");
newObj.attr('id', 'btnRectangle');
// ID the Polygon button
newObj = $(this).find("[title='Draw a shape']");
newObj.attr('id', 'btnShape');
});
To further modify it, I add my own buttons to the tool bar like this:
$("#btnBar").append('<div style="float: left; line-height: 0;"><div id="btnDelete" style="direction: ltr; overflow: hidden; text-align: left; position: relative; color: rgb(51, 51, 51); font-family: Arial,sans-serif; -moz-user-select: none; font-size: 13px; background: none repeat scroll 0% 0% rgb(255, 255, 255); padding: 4px; border-width: 1px 1px 1px 0px; border-style: solid solid solid none; border-color: rgb(113, 123, 135) rgb(113, 123, 135) rgb(113, 123, 135) -moz-use-text-color; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4); font-weight: normal;" title="Delete Selected"><span style="display: inline-block;"><div style="width: 16px; height: 16px; overflow: hidden; position: relative;"><img style="position: absolute; left: 0px; top: -195px; -moz-user-select: none; border: 0px none; padding: 0px; margin: 0px; width: 16px; height: 350px;" src="drawing.png" draggable="false"></div></span></div></div>');
Then, to activate the new button and change the icons on the mouse click:
google.maps.event.addDomListener(document.getElementById('btnDelete'), 'click', deleteSelectedShape);
google.maps.event.addDomListener(document.getElementById('btnDelete'), 'mousedown', function () {
$("#btnDelete img").css("top", "-212px");
});
google.maps.event.addDomListener(document.getElementById('btnDelete'), 'mouseup', function () {
$("#btnDelete img").css("top", "-195px");
});
Hope this helps! :)
Dennis

this is the CSS code I used to override the styles on the buttons.
In my case the HTML for the icons looks like this
<div class="gmnoprint" style="margin: 5px; z-index: 10; position: absolute; top: 0px; left: 310px;">
<div style="float: left; line-height: 0;">
<div role="button" tabindex="0" title="Parar de desenhar" aria-label="Parar de desenhar" aria-pressed="true" draggable="false" style="direction: ltr; overflow: hidden; text-align: left; position: relative; color: rgb(0, 0, 0); font-family: Roboto, Arial, sans-serif; user-select: none; font-size: 11px; background-color: rgb(255, 255, 255); padding: 4px; border-bottom-left-radius: 2px; border-top-left-radius: 2px; background-clip: padding-box; box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px; font-weight: 500;">
<span style="display: inline-block;">
<div style="width: 16px; height: 16px; overflow: hidden; position: relative;">
<img alt="" src="https://maps.gstatic.com/mapfiles/drawing.png" draggable="false" style="position: absolute; left: 0px; top: -144px; user-select: none; border: 0px; padding: 0px; margin: 0px; max-width: none; width: 16px; height: 192px;">
</div>
</span>
</div>
</div>
<div style="float: left; line-height: 0;">
<div role="button" tabindex="0" title="Desenhar uma forma" aria-label="Desenhar uma forma" aria-pressed="false" draggable="false" style="direction: ltr; overflow: hidden; text-align: left; position: relative; color: rgb(86, 86, 86); font-family: Roboto, Arial, sans-serif; user-select: none; font-size: 11px; background-color: rgb(255, 255, 255); padding: 4px; background-clip: padding-box; box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px; border-left: 0px;">
<span style="display: inline-block;">
<div style="width: 16px; height: 16px; overflow: hidden; position: relative;">
<img alt="" src="https://maps.gstatic.com/mapfiles/drawing.png" draggable="false" style="position: absolute; left: 0px; top: -64px; user-select: none; border: 0px; padding: 0px; margin: 0px; max-width: none; width: 16px; height: 192px;">
</div>
</span>
</div>
</div>
<div style="float: left; line-height: 0;">
<div role="button" tabindex="0" title="Desenhar um círculo" aria-label="Desenhar um círculo" aria-pressed="false" draggable="false" style="direction: ltr; overflow: hidden; text-align: left; position: relative; color: rgb(86, 86, 86); font-family: Roboto, Arial, sans-serif; user-select: none; font-size: 11px; background-color: rgb(255, 255, 255); padding: 4px; background-clip: padding-box; box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px; border-left: 0px;">
<span style="display: inline-block;">
<div style="width: 16px; height: 16px; overflow: hidden; position: relative;">
<img alt="" src="https://maps.gstatic.com/mapfiles/drawing.png" draggable="false" style="position: absolute; left: 0px; top: -160px; user-select: none; border: 0px; padding: 0px; margin: 0px; max-width: none; width: 16px; height: 192px;">
</div>
</span>
</div>
</div>
<div style="float: left; line-height: 0;">
<div role="button" tabindex="0" title="Desenhar um retângulo" aria-label="Desenhar um retângulo" aria-pressed="false" draggable="false" style="direction: ltr; overflow: hidden; text-align: left; position: relative; color: rgb(86, 86, 86); font-family: Roboto, Arial, sans-serif; user-select: none; font-size: 11px; background-color: rgb(255, 255, 255); padding: 4px; border-bottom-right-radius: 2px; border-top-right-radius: 2px; background-clip: padding-box; box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px; border-left: 0px;">
<span style="display: inline-block;">
<div style="width: 16px; height: 16px; overflow: hidden; position: relative;">
<img alt="" src="https://maps.gstatic.com/mapfiles/drawing.png" draggable="false" style="position: absolute; left: 0px; top: -16px; user-select: none; border: 0px; padding: 0px; margin: 0px; max-width: none; width: 16px; height: 192px;">
</div>
</span>
</div>
</div>
</div>
CSS styles applied
.gmnoprint > div > div[role=button] {
width: 44px;
height: 44px;
vertical-align: middle;
line-height: 40px;
text-align: center;
}
.gmnoprint > div > div[role=button] > span > div > img {
display: none;
}
.gmnoprint > div > div[role=button] > span > div:before {
font: normal normal normal 14px/1 FontAwesome;
content: "\f007";
font-size: 22px;
}

Related

posting area not expanding

I'm coding an area which is intended for posting on a forum, and therefore should expand with the content as it grows longer. I coded it with a min-height, and thought it would move with the rest as it expanded. Unfortunately, the posting area itself expands, but the areas/footers beneath it don't move down. They stay firmly in place.
I've searched all over, and saw mentions of floats and clearfixes, so I'm not sure if that's what I need to do. I attempted some clearfix methods, but they either malfunctioned or simply didn't work at all. I also tried adding 'overflow:hidden' to all of the sections with floats, but that did nothing. I'm also unfamiliar with coding with flexboxes right now, so that isn't a suitable solution for me at this time.
I think having some new sets of eyes on this would be very helpful. Please help me see where I'm going wrong.
Unfortunately, I don't have a codepen link for this one because I changed it significantly from its original model when I put it on my site. I can link to a thread where it's showing the issue though: https://lovedive.jcink.net/index.php?showtopic=5&st=0&#entry20
Here's the full code and css. It's long so hopefully that's not a pain.
.posting {
width: 1100px;
min-height: 1380px;
background-color: #f7f7f7;
border-radius: 15px 15px 10px 10px;
border: 1px solid #eee;
position: relative;
z-index: 0;
margin-bottom: 20px;
}
.proftop {
width: 1100px;
height: 150px;
padding: 0px;
background-image: linear-gradient( to bottom right, rgba(202, 186, 202, 0.2), rgba(123, 83, 123, 0.7));
/****CHANGE FOR GROUP****/
border-radius: 15px 15px 0px 0px;
overflow: hidden;
}
.proftopname {
width: 800px;
padding: 15px;
font-family: abril fatface;
font-size: 45px;
text-align: center;
color: #ffffff;
text-transform: lowercase;
text-shadow: 1px -1px 0px rgba(0, 0, 0, 0.2), -1px 1px 0px rgba(0, 0, 0, 0.2), 1px 1px 0px rgba(0, 0, 0, 0.2), -1px -1px 0px rgba(0, 0, 0, 0.2);
letter-spacing: 2px;
position: absolute;
left: 0px;
top: 30px;
}
.proftopname a {
color: #ffffff;
}
.proftoppic {
position: absolute;
top: 0px;
right: 0px;
}
.proftoppic img {
object-fit: cover;
object-position: center;
height: 150px;
width: 250px;
border-radius: 100px 20px 0px 100px;
}
/*** CHARACTER INFO BENEATH TOP BAR ***/
.picandlinks {
height: 10px;
width: 10px;
display: inline-block;
position: absolute;
left: 0px;
}
.profroundpic {
height: 100px;
width: 100px;
background-color: #f7f7f7;
padding: 15px;
border: 1px solid rgba(123, 83, 123, 0.5);
/****CHANGE FOR GROUP****/
border-radius: 100px;
margin: 40px;
display: inline-block;
position: absolute;
top: -20px;
left: 0px;
z-index: 10;
}
.profroundpic img {
object-fit: cover;
object-position: center;
height: 100px;
width: 100px;
border-radius: 100px;
}
.topicsposts {
width: 80px;
height: 100px;
padding: 10px 10px 0px;
margin: 1px;
background-color: transparent;
display: inline-block;
position: absolute;
left: 140px;
top: 32px;
z-index: 11;
}
.topicsposts g {
height: 15px;
width: 15px;
padding: 8px 10px 10px 10px;
border-radius: 100px;
background-color: rgba(202, 186, 202, 1);
/****CHANGE FOR GROUP****/
font-size: 15px;
color: #fff;
position: absolute;
display: inline-block;
left: 35px;
top: -10px;
}
.topicsposts h {
height: 15px;
width: 15px;
padding: 8px 10px 10px 10px;
border-radius: 100px;
background-color: rgba(202, 186, 202, 1);
/****CHANGE FOR GROUP****/
font-size: 15px;
color: #fff;
position: relative;
display: inline-block;
left: 35px;
top: 25px;
}
.topicsposts j {
height: 15px;
width: 15px;
padding: 8px 10px 10px 10px;
border-radius: 100px;
background-color: rgba(202, 186, 202, 1);
/****CHANGE FOR GROUP****/
font-size: 15px;
color: #fff;
position: relative;
display: inline-block;
top: 68px;
left: -15px;
}
.topicsposts g:hover {
background-color: rgba(163, 135, 163, 1);
/****CHANGE FOR GROUP****/
transition: ease-in 0.3s;
cursor: crosshair;
}
.topicsposts h:hover {
background-color: rgba(163, 135, 163, 1);
/****CHANGE FOR GROUP****/
transition: ease-in 0.3s;
cursor: crosshair;
}
.topicsposts j:hover {
background-color: rgba(163, 135, 163, 1);
/****CHANGE FOR GROUP****/
transition: ease-in 0.3s;
cursor: crosshair;
}
.topicsposts a {
font-size: 15px;
color: #fff;
text-decoration: none;
}
.hiddenbubbleone {
height: 170px;
width: 200px;
border-radius: 150px;
background-color: #f7f7f7;
position: absolute;
z-index: 9;
top: 150px;
left: 10px;
}
.charinfo {
width: 870px;
height: 100px;
border-radius: 2px;
background-color: #eee;
padding: 20px;
margin: 15px;
position: absolute;
right: 0px;
font-family: poppins;
display: block;
}
.charinfo f {
font-size: 25px;
height: 25px;
color: rgba(247, 247, 247, 1);
letter-spacing: 1px;
padding: 5px 20px 0px 20px;
margin-top: 30px;
font-family: staatliches;
letter-spacing: 4px;
display: block;
text-shadow: 1px -1px 0px rgba(125, 131, 137, 0.5), -1px 1px 0px rgba(125, 131, 137, 0.5), 1px 1px 0px rgba(125, 131, 137, 0.5), -1px -1px 0px rgba(125, 131, 137, 0.5);
}
.charinfo k {
padding: 5px 15px;
margin: 5px;
border-radius: 5px;
height: 10px;
font-size: 10px;
color: #888888;
text-transform: uppercase;
letter-spacing: 2px;
text-shadow: 1px -1px 0px rgba(255, 255, 255, 0.2), -1px 1px 0px rgba(255, 255, 255, 0.2), 1px 1px 0px rgba(255, 255, 255, 0.2), -1px -1px 0px rgba(255, 255, 255, 0.2);
}
/******** POSTING AREA *********/
.postarea {
min-height: 600px;
width: 720px;
padding: 30px;
font-family: poppins;
font-size: 12px;
color: #888;
letter-spacing: 1px;
text-align: left;
background-color: rgba(255, 255, 255, 0.6);
border-top: 40px solid #eee;
border-left: 1px solid #eee;
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
border-radius: 5px;
position: absolute;
display: inline-block;
top: 320px;
left: 20px;
}
.postdatetime {
width: 300px;
font-family: montserrat;
font-size: 10px;
letter-spacing: 2px;
text-align: left;
text-transform: uppercase;
color: #666;
position: absolute;
top: 335px;
left: 40px;
z-index: 10;
}
.postdatetime a {
text-decoration: none;
color: rgba(123, 83, 123, 1);
/****CHANGE FOR GROUP****/
cursor: crosshair;
}
.posteditbuttons {
width: 250px;
font-family: montserrat;
font-size: 10px;
letter-spacing: 1px;
text-align: right;
text-transform: uppercase;
color: #666;
position: absolute;
top: 335px;
right: 320px;
z-index: 10;
}
.posteditbuttons a {
text-decoration: none;
color: rgba(123, 83, 123, 1);
/****CHANGE FOR GROUP****/
cursor: crosshair;
margin-left: 10px;
display: inline-block;
}
/******** MINI PROFILE ********/
.miniholder {
height: 400px;
width: 230px;
padding: 25px 15px;
border-radius: 5px;
border: 1px solid #eee;
background-image: linear-gradient( to bottom, rgba(202, 186, 202, 0.4), rgba(123, 83, 123, 0.3));
/****CHANGE FOR GROUP****/
position: absolute;
display: inline-block;
top: 320px;
right: 20px;
}
.miniarea {
height: 400px;
width: 230px;
background-color: #fff;
}
/*****BOTTOM INFO******/
.bottomcontainer {
width: 1100px;
height: 550px;
border-radius: 0px 0px 10px 10px;
background-image: linear-gradient( rgba(255, 255, 255, 0.2), rgba(202, 186, 202, 0.5));
/****CHANGE FOR GROUP****/
position: absolute;
z-index: 0;
bottom: 0px;
}
/******** SHIP STATUS *******/
.shipinfo {
width: 450px;
height: 180px;
padding: 10px;
border-radius: 15px 2px 2px 15px;
border: 1px solid #ddd;
background-color: rgba(255, 255, 255, 0.7);
position: relative;
top: 205px;
display: inline-block;
}
.shipinfo1 {
height: 160px;
background-color: #fff;
border: 1px dashed #eee;
padding: 10px;
border-radius: 15px 2px 2px 15px;
}
.shipstatus {
width: 220px;
height: 100px;
position: absolute;
top: 50px;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
.shipstatus d {
display: block;
height: 20px;
margin-top: 25px;
font-family: poppins;
text-transform: uppercase;
font-size: 12px;
letter-spacing: 1px;
color: #aaa;
}
.shipstatus a {
display: block;
height: 20px;
margin-top: 5px;
font-family: staatliches;
font-size: 20px;
letter-spacing: 1px;
color: rgba(123, 83, 123, 0.6);
/****CHANGE FOR GROUP****/
text-decoration: none;
cursor: crosshair;
}
.partnergif {
width: 180px;
height: 120px;
background-color: #fff;
position: absolute;
display: inline-block;
right: 40px;
top: 35px;
z-index: 1;
}
.partnergif img {
object-fit: cover;
object-position: center;
width: 180px;
height: 120px;
border: 5px solid #fff;
border-radius: 2px;
box-shadow: 1px 1px 0px #ddd, -1px -1px 0px #ddd;
}
.shipgrad {
height: 160px;
width: 50px;
background-image: linear-gradient( rgba(202, 186, 202, 0.2), rgba(123, 83, 123, 0.3));
/****CHANGE FOR GROUP****/
position: absolute;
right: 20px;
top: 20px;
z-index: 0;
}
/****** TRIGGERS ******/
.triggersinfo {
width: 450px;
height: 180px;
padding: 10px;
border-radius: 2px 15px 15px 2px;
border: 1px solid #ddd;
background-color: rgba(255, 255, 255, 0.7);
position: relative;
top: 205px;
display: inline-block;
}
.triggersinfo1 {
height: 160px;
background-color: #fff;
border: 1px dashed #eee;
padding: 10px;
border-radius: 2px 15px 15px 2px;
}
.triggersgrad {
height: 160px;
width: 50px;
background-image: linear-gradient( rgba(202, 186, 202, 0.2), rgba(123, 83, 123, 0.3));
/****CHANGE FOR GROUP****/
position: absolute;
}
.triggersicon {
height: 30px;
width: 30px;
padding: 12px 15px 16px 15px;
border-radius: 2px;
background-color: #fff;
border: 1px solid #eee;
color: #aaa;
font-size: 30px;
position: absolute;
top: 70px;
left: 35px;
}
.trigiconpulse {
height: 30px;
width: 30px;
border-radius: 50px;
position: absolute;
top: 15px;
background-color: transparent;
box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
transform: scale(1);
animation: pulse 2s infinite;
}
#keyframes pulse {
0% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
}
100% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
}
.triggersheader {
width: 300px;
height: 30px;
padding-bottom: 30px;
font-size: 30px;
font-family: staatliches;
text-transform: uppercase;
color: #aaa;
letter-spacing: 2px;
position: absolute;
left: 130px;
border-bottom: 1px dashed #ddd;
}
.triggersheader w {
font-family: montserrat;
font-size: 10px;
letter-spacing: 1px;
display: block;
border-top: 1px dashed #ddd;
padding: 5px;
}
.triggersheader ion-icon {
position: relative;
top: 2px;
font-size: 11px;
}
.triggersbox {
height: 70px;
width: 300px;
padding: 10px 15px;
background-color: #f7f7f7;
overflow: auto;
font-family: poppins;
color: #aaa;
font-size: 11px;
text-align: justify;
position: absolute;
top: 90px;
left: 115px;
}
/*** OTHER LINKS ***/
.otherlinks {
height: 90px;
width: 1030px;
padding: 10px 20px 20px 20px;
background-color: rgba(255, 255, 255, 0.6);
border-radius: 15px;
border: 1px solid #ddd;
display: block;
position: relative;
top: 210px;
}
.otherlinksleft {
height: 60px;
width: 400px;
padding-top: 20px;
display: inline-block;
float: left;
overflow: hidden;
}
.otherlinks g {
height: 20px;
width: 20px;
padding: 15px 20px;
border-radius: 8px;
background-color: rgba(202, 186, 202, 0.4);
/***CHANGE TO GROUP COLOR***/
margin: 5px;
box-shadow: 1px -1px 0px rgba(255, 255, 255, 1), -1px 1px 0px rgba(255, 255, 255, 1), 1px 1px 0px rgba(255, 255, 255, 1), -1px -1px 0px rgba(255, 255, 255, 1);
display: inline-block;
}
.otherlinks g:hover {
background-image: linear-gradient( rgba(222, 212, 222, 0.2), rgba(163, 135, 163, 0.3));
/***CHANGE TO GROUP COLOR***/
}
.otherlinks a {
font-size: 20px;
color: #fff;
text-decoration: none;
text-shadow: 1px -1px 0px rgba(163, 135, 163, 0.5), -1px 1px 0px rgba(163, 135, 163, 0.5), 1px 1px 0px rgba(163, 135, 163, 0.5), -1px -1px 0px rgba(163, 135, 163, 0.5);
}
.otherlinksright {
height: 100px;
width: 620px;
display: inline-block;
border-left: 1px dashed #eee;
font-family: montserrat;
float: right;
}
.aliasinfoleft {
height: 100px;
width: 160px;
display: inline-block;
float: left;
margin-right: 10px;
}
.aliasinfoleft k {
display: block;
width: 150px;
height: 10px;
background-color: #fafafa;
padding: 8px 20px 15px 5px;
}
.aliasinfoleft l {
width: 50px;
font-size: 15px;
border-right: 1px dashed #bbb;
color: rgba(163, 135, 163, 1);
/***CHANGE TO GROUP COLOR***/
float: left;
}
.aliasinfoleft m {
font-size: 10px;
text-transform: lowercase;
float: right;
color: #aaa;
letter-spacing: 1px;
padding-top: 2px;
}
.aliasinfomid {
height: 100px;
width: 200px;
display: inline-block;
float: left;
margin-left: 10px;
font-family: montserrat;
font-size: 11px;
}
.aliasinfomid k {
display: block;
width: 175px;
height: 25px;
background-color: #fafafa;
padding: 8px 20px 15px 5px;
}
.aliasinfomid l {
width: 70px;
font-size: 25px;
border-right: 1px dashed #bbb;
color: rgba(163, 135, 163, 1);
/***GROUP COLOR***/
padding-top: 3px;
float: left;
}
.aliasinfomid m {
font-size: 12px;
text-transform: lowercase;
float: right;
color: #aaa;
letter-spacing: 1px;
padding-top: 7px;
overflow: hidden;
}
.aliasname {
height: 60px;
width: 200px;
padding: 25px 15px 15px 15px;
font-size: 11px;
letter-spacing: 2px;
display: inline-block;
float: right;
color: #aaa;
}
.aliasname n {
display: block;
font-size: 22px;
letter-spacing: 1px;
font-family: poppins;
font-weight: bold;
}
<div id="g-<!-- |g_id| -->">
<center>
<div class="posting">
<a name='entry<!-- |pid| -->'></a>
<div class="proftop">
<div class="proftopname">
<!-- |name| -->
</div>
<div class="fakebar1"></div>
<div class="fakebar2"></div>
<div class="proftoppic">
<img src="<!-- |field_24| -->">
</div>
</div>
<div class="picandlinks">
<div class="profroundpic"><img src="<!-- |field_25| -->"></div>
<div class="topicsposts">
<a href="/index.php?act=Search&CODE=getalluser&mid=<!-- |poster_id| -->&type=topics">
<g>
<ion-icon name="folder-open"></ion-icon>
</g>
</a>
<a href="/index.php?act=Search&CODE=getalluser&mid=<!-- |poster_id| -->&type=posts">
<h>
<ion-icon name="bookmarks"></ion-icon>
</h>
</a>
<a href="/index.php?act=Msg&CODE=04&MID=<!-- |poster_id| -->">
<j>
<ion-icon name="mail"></ion-icon>
</j>
</a>
</div>
</div>
<div class="hiddenbubbleone"></div>
<div class="charinfo">
<f>
<!-- |field_3| -->
</f>
<k>
<!-- |field_8| -->
</k>
<k>
<!-- |field_2| -->
</k>
<k>
<!-- |field_4| -->
</k>
<k>
<!-- |field_5| -->/
<!-- |field_6| -->
</k>
<k>
<!-- |field_7| -->
</k>
</div>
<div class="postdatetime">
<a href="<!-- |permalink| -->">
<ion-icon name="arrow-redo"></ion-icon>
</a>
<!-- |post_date| -->
</div>
<div class="posteditbuttons">
<!-- |mod_checkbox| -->
<!-- |edit_button| -->
<!-- |quote_button| -->
<!-- |delete_button| -->
<!-- |report_link| -->
</div>
<div class="postarea">
<!-- |post| -->
</div>
<div class="miniholder">
<div class="miniarea">
<!-- |mini_profile| -->
</div>
</div>
<div class="bottomcontainer">
<div class="shipinfo">
<div class="shipinfo1">
<div class="shipstatus">
<d>
<!-- |field_9| -->
</d>
<a href="<!-- |field_11| -->">
<!-- |field_10| -->
</a>
</div>
<div class="partnergif"><img src="<!-- |field_23| -->"></div>
<div class="shipgrad"></div>
</div>
</div>
<div class="triggersinfo">
<div class="triggersinfo1">
<div class="triggersgrad"></div>
<div class="triggersicon">
<ion-icon name="alert-circle"></ion-icon>
<div class="trigiconpulse"></div>
</div>
<div class="triggersheader">triggers
<w>please tag
<ion-icon name="warning-sharp"></ion-icon>
</w>
</div>
<div class="triggersbox">
<!-- |field_22| -->
</div>
</div>
</div>
<div class="otherlinks">
<div class="otherlinksleft">
<g>
<a href="DIRECTORY">
<ion-icon name="id-card"></ion-icon>
</a>
</g>
<g>
<a href="<!-- |field_12| -->" alt="character dev">
<ion-icon name="color-palette"></ion-icon>
</a>
</g>
<g>
<a href="<!-- |field_13| -->" alt="ship dev">
<ion-icon name="heart-half"></ion-icon>
</a>
</g>
<g>
<a href="<!-- |field_14| -->" alt="instagram">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</g>
<g>
<a href="<!-- |field_15| -->" alt="request">
<ion-icon name="pricetags"></ion-icon>
</a>
</g>
</div>
<div class="otherlinksright">
<div class="aliasinfoleft">
<k>
<l>
<ion-icon name="fitness"></ion-icon>
</l>
<m>
<!-- |field_16| -->
</m>
</k>
<k style="border-bottom: 1px dashed #DDD; border-top: 1px dashed #DDD;">
<l>
<ion-icon name="shirt"></ion-icon>
</l>
<m>
<!-- |field_17| -->
</m>
</k>
<k>
<l>
<ion-icon name="earth"></ion-icon>
</l>
<m>
<!-- |field_18| -->
</m>
</k>
</div>
<div class="aliasinfomid">
<k>
<l>
<ion-icon name="eye-off"></ion-icon>
</l>
<m>
<!-- |field_19| -->
</m>
</k>
<k style="margin-top: 5px;">
<l>
<ion-icon name="flash"></ion-icon>
</l>
<m>
<!-- |field_20| -->
</m>
</k>
</div>
<div class="aliasname">written by
<n>
<!-- |field_21| -->
</n>
</div>
</div>
</div>
<div style="clear: both;"></div>
</div>
</div>
</center>
</div>
Seeing your code, I will guess you do not understand much of what the code is doing.
Here there is a minimal version of something I would imagine is what you are looking for.
When you use float, the element stops taking space by itself and start to float inside its parent, so in your case, you shouldn't use it.
// Get all comments with class 'comment'
const comment = document.querySelectorAll('.comment');
// Iterate the comments in order to make it multiple
comment.forEach( function(element) {
// Add click to every element
element.addEventListener('click',function() {
// Remove class to make it full size
this.classList.remove('short_comment');
//Get the button of that block and make it dissapear
var button_read_more = this.querySelectorAll('.read_more');
button_read_more[0].remove();
});
});
footer {
width: 100%;
background: green;
}
footer div {
padding: 50px;
}
/* No floating */
.short_comment .content {
max-height: 25px;
background: yellow;
overflow: hidden;
}
<div class="comment short_comment">
<p class="content">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
</p>
<button class="read_more">read all</button>
</div>
<footer>
<div>This is the footer</div>
</footer>

AutoCompleteExtender Hiding in IE but working in Edge

We are using AutoCompleteExtender in our project and when checking in IE we don't see the full list but just first element. However, same site works just fine in Edge/Chrome. I did poking around and found that the list/dropdown is there but its somehow hiding behind and just one item hight of data is visible. here is how it looks.
IE:
Edge/Chrome:
IE when using element highligher :
Server side code
<ajaxTK:AutoCompleteExtender ID="AutoCompleteExtenderGoToOrder"
TargetControlID="txtGlobalOrderKeywords"
runat="server"
MinimumPrefixLength="3"
CompletionInterval="500"
CompletionSetCount="20"
ServicePath="~/services/dataAjax.asmx"
ServiceMethod="GetGoToOrderList"
UseContextKey="true"
OnClientItemSelected="extenderOrderSelected"
CompletionListCssClass="autocompletegotoorder_completionListElement"
CompletionListItemCssClass="autocompletegotoorder_listItem"
CompletionListHighlightedItemCssClass="autocompletegotoorder_highlightedListItem"
/>
HTML
<DIV id=Header1_divGotoOrder class=gotoOrder>
<SPAN id=Header1_lblGlobalGoToOrder class=topicHeader style="COLOR: white">Order:</SPAN>
<INPUT id=Header1_hdnGlobalOrderID type=hidden name=Header1$hdnGlobalOrderID>
<INPUT id=Header1_txtGlobalOrderKeywords style="WIDTH: 50%" value=metr name=Header1$txtGlobalOrderKeywords autocomplete="off">
<UL id=Header1_AutoCompleteExtenderGoToOrder_completionListElem class=autocompletegotoorder_completionListElement style="WIDTH: 463px; POSITION: absolute; LEFT: 1405px; Z-INDEX: 1000; DISPLAY: none; TOP: 30px; VISIBILITY: hidden"></UL>
</DIV>
CSS
.autocompletegotoorder_completionListElement
{
padding-bottom: 0px;
padding-top: 0px;
padding-right: 0px;
padding-left: 0px;
position: absolute;
z-index: 9999 !important;
visibility: hidden;
margin-left: -1px !important;
margin-top: 0px !important;
background-color: #F1F0F0;
color: windowtext;
border: buttonshadow;
border-color: Black;
border-width: 1px;
border-style: solid;
cursor: 'default';
overflow: auto;
height: 200px;
text-align: left;
list-style-type: none;
}
/* AutoComplete highlighted item */
.autocompletegotoorder_highlightedListItem
{
list-style-type: none;
font-family: Tahoma;
font-size: 11px;
color: White;
text-decoration: none;
background-color: Navy;
cursor: pointer;
cursor: hand;
padding: 0px 0px 0px 3px;
margin: 0px;
text-align: left;
line-height: 20px !important;
}
/* AutoComplete item */
.autocompletegotoorder_listItem
{
line-height: 20px !important;
background-color: #F1F0F0;
padding: 0px 0px 0px 3px;
margin: 0px;
font-family: Tahoma;
font-size: 11px;
color: black;
cursor: default;
text-decoration: none;
text-align: left;
}

Put a button into 3 images

I would like to put a button on 3 images. I made this:
I think my code is very long in my CSS? I often use the property left for each button, is it correct?
I think that I can delete .button_red_02 and .button_red_03?
In my HTML code I have ths:
<section id="contents">
<div class="background_red">Want to be updated with our offers and news?</div>
<div class="background_grey">
Read more +
<img src="https://zupimages.net/up/19/51/vn88.jpg" alt="" /></a>
Read more +
<img src="https://zupimages.net/up/19/51/9fik.jpg" alt="" /></a>
Read more +
<img src="https://zupimages.net/up/19/51/dwq9.jpg" alt="" /></a>
</div>
</section>
Then, in my CSS code I have this
.button_red_01{
background-color: #cd2122;
border: none;
color: white;
padding: 4px 15px 4px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
cursor: pointer;
position: absolute;
left: -10px;
top: 150px;
z-index: 1;
font-size: 12px;
font-family: Open Sans;
}
.button_red_02{
background-color: #cd2122;
border: none;
color: white;
padding: 4px 15px 4px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
cursor: pointer;
position: absolute;
left: 370px;
top: 150px;
z-index: 1;
font-size: 12px;
font-family: Open Sans;
}
.button_red_03{
background-color: #cd2122;
border: none;
color: white;
padding: 4px 15px 4px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
cursor: pointer;
position: absolute;
right: 334px;
top: 150px;
z-index: 1;
font-size: 12px;
font-family: Open Sans;
}
#contents{
position:absolute;
display: block;
background-color: #CD2122;
top: 538px;
width: 100%;
height: 70px;
}
.background_red{
font-family: Open Sans, sans-serif;
font-size: 22px;
color: #fff;
margin: 17px 0px 17px 100px;
}
.background_grey{
display: block;
position: absolute;
top: 60px;
height: 80%;
margin-top: 48px;
left: 115px;
}
.background_grey img {
width: 30%;
border: 3px solid #BDB9B9;
margin:10px 16px 10px 0;
}
.button_red_01{
background-color: #cd2122;
border: none;
color: white;
padding: 4px 15px 4px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
cursor: pointer;
position: absolute;
left: -10px;
top: 150px;
z-index: 1;
font-size: 12px;
font-family: Open Sans;
}
.button_red_02{
background-color: #cd2122;
border: none;
color: white;
padding: 4px 15px 4px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
cursor: pointer;
position: absolute;
left: 370px;
top: 150px;
z-index: 1;
font-size: 12px;
font-family: Open Sans;
}
.button_red_03{
background-color: #cd2122;
border: none;
color: white;
padding: 4px 15px 4px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
cursor: pointer;
position: absolute;
right: 334px;
top: 150px;
z-index: 1;
font-size: 12px;
font-family: Open Sans;
}
<section id="contents">
<div class="background_red">Want to be updated with our offers and news?</div>
<div class="background_grey">
Read more +
<img src="https://zupimages.net/up/19/51/vn88.jpg" alt="" /></a>
Read more +
<img src="https://zupimages.net/up/19/51/9fik.jpg" alt="" /></a>
Read more +
<img src="https://zupimages.net/up/19/51/dwq9.jpg" alt="" /></a>
</div>
</section>
As soon as you have the same CSS specifications for multiple objects, you can use classes and assign these to all of the objects required. In your example you do not need to have the same CSS for each button since all of them have mainly the same properties.
For the positioning I suggest to add unique IDs to each button to handle the positioning individually.
Note that each ID should only be used once (unique identifiers!) within your html template.
To select classed objects, use .classname, to select ID linked objects use #IDname.
Also since your browser reads your CSS file from top to bottom, you can change single properties for each button within its ID selector, for example
#button_red_01 {
background-color: blue;
}
For further insights on classes and IDs I highly recommend the MDN resource https://developer.mozilla.org/de/docs/Web/HTML/Globale_Attribute/class.
#contents{
position:absolute;
display: block;
background-color: #CD2122;
top: 538px;
width: 100%;
height: 70px;
}
.background_red{
font-family: Open Sans, sans-serif;
font-size: 22px;
color: #fff;
margin: 17px 0px 17px 100px;
}
.background_grey{
display: block;
position: absolute;
top: 60px;
height: 80%;
margin-top: 48px;
left: 115px;
}
.background_grey img {
width: 30%;
border: 3px solid #BDB9B9;
margin:10px 16px 10px 0;
}
.button {
background-color: #cd2122;
border: none;
color: white;
padding: 4px 15px 4px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
cursor: pointer;
position: absolute;
z-index: 1;
font-size: 12px;
font-family: Open Sans;
}
#button_red_01 {
left: -10px;
top: 150px;
color: #2B28D8;
}
#button_red_02 {
left: 370px;
top: 150px;
}
#button_red_03 {
right: 334px;
top: 150px;
}
<section id="contents">
<div class="background_red">Want to be updated with our offers and news?</div>
<div class="background_grey">
Read more +
<img src="https://zupimages.net/up/19/51/vn88.jpg" alt="" /></a>
Read more +
<img src="https://zupimages.net/up/19/51/9fik.jpg" alt="" /></a>
Read more +
<img src="https://zupimages.net/up/19/51/dwq9.jpg" alt="" /></a>
</div>
</section>

How to make chevron down clickable

I want to bring the dropdown chevron behind my dropdown so that when I click anywhere on my dropdown, I can see the menu. Right now the chevron-down area is unclickable.
I have looked into other options of using font awesome but have not been able to do so.
<div id="actions-dropdown" class="actions">
<select class="select-option" required [(ngModel)]='optionSelected' (ngModelChange)='onOptionsSelected($event)'>
<option class='option' *ngFor='let option of options' [value]="option">{{option}}</option>
</select>
<i id="arrow" class="fa fa-chevron-down"></i>
</div>
CSS
.select-option {
background: transparent;
background-size: auto auto;
-moz-appearance: none;
padding-top: 0px;
background-size: 20px;
color: #ffffff;
font-size: 30px;
width: 100px;
height: 40px;
border: 1px white solid;
margin: 11px 0px 0px 1071px;
z-index: 5;
}
.fa-chevron-down {
color: red;
z-index: -5;
margin: 0px 0px 0px -5px;
}
Method 2 using Font Awesome
.select-option {
border: 1px solid #ccc;
overflow: hidden;
height: 40px;
width: 240px;
position: relative;
display: block;
background:black;
}
select{
height: 40px;
padding: 5px;
border: 0;
font-size: 16px;
width: 240px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.select-option:after {
content:"\f078";
font-family: FontAwesome;
background: : black;
padding: 12px 8px;
position: absolute; right: 0; top: 0;
background: blue;
z-index: 1;
text-align: center;
width: 10%;
height: 100%;
pointer-events: none;
box-sizing: border-box;
}
change your markup like this. use label instead of i. set pointer-events: none to .fa-chevron-down
<div id="actions-dropdown" class="actions">
<select id="select-el" class="select-option" required [(ngModel)]='optionSelected' (ngModelChange)='onOptionsSelected($event)'>
<option class='option' *ngFor='let option of options' [value]="option">{{option}}</option>
</select>
<label id="arrow" for="select-el" class="fa fa-chevron-down"></label>
</div>
.select-option {
background: transparent;
background-size: auto auto;
-moz-appearance: none;
padding-top: 0px;
background-size: 20px;
color: #ffffff;
font-size: 30px;
width: 100px;
height: 40px;
border: 1px red solid;
margin: 11px 0px 0px 0;
z-index: 5;
}
.actions {
position: relative;
display: inline-block;
}
.fa-chevron-down {
color: red;
z-index: 7;
margin: 0px 0px 0px -5px;
position: absolute;
top:20px;
right:0;
pointer-events:none;
}
.select-option {
border: 1px solid #ccc;
overflow: hidden;
height: 40px;
width: 240px;
position: relative;
display: block;
background:black;
}
select{
height: 40px;
padding: 5px;
border: 0;
font-size: 16px;
width: 240px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.select-option:after {
content:"\f078";
font-family: FontAwesome;
background: : black;
padding: 12px 8px;
position: absolute; right: 0; top: 0;
background: blue;
z-index: 1;
text-align: center;
width: 10%;
height: 100%;
pointer-events: none;
box-sizing: border-box;
}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" />
<div id="actions-dropdown" class="actions">
<select id="select-el" class="select-option" required>
<option class='option'>option</option>
<option class='option'>option</option>
<option class='option'>option</option>
<option class='option'>option</option>
</select>
<label for="select-el" class="fa fa-chevron-down"></label>
</div>
Case 1) z-index: -5; might be your problem.
.fa-chevron-down {
color: red;
z-index: -5;
margin: 0px 0px 0px -5px;
}
Case 2) .select-option:after not sure if this works because form elements don't have pseudo elements like :before and :after. You might need a different element, like a span to wrap the <select> element and apply :after to span.

Header moves on windows resize

When ever I re-size the window the header moves leaving a space on the right side. (Refer to image ). If I shrink the window horizontally even more the gap increases. I have only been able to fix this problem by making the position for header to fixed but then the text overlaps. I want the header to move with the vertical scroll. Any help on here where I am going wrong is highly appreciated.
*{
padding:0;
margin:0 auto;
font-family: 'Museo Slab 300';
}
html{
background: url("Images/backlines.png") no-repeat center center fixed;
}
.company-header {
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%,color-stop(0, rgb(226, 226, 226)),color-stop(0, rgb(254, 254, 254)),color-stop(0.1, rgb(254, 254, 254)),color-stop(1, rgb(219, 219, 219)),color-stop(1, rgb(209, 209, 209)));
height: 140px;
box-shadow: 0px 2px;
position: absolute;
width: 100%;
top: 0px;
}
.company-footer{
position: fixed;
right: 0;
bottom: 0;
left: 0;
padding: 1rem;
background-color: #efefef;
text-align: left;
z-index:-1;
box-shadow: 0px -4px rgba(0, 173, 239, 1);
}
img#logo-image {
position: absolute;
left: 270px;
}
div#setting-dropdown {
position: relative;
float: right;
right: 250px;
top: 58px;
}
div#setting-dropdown-content {
display: none;
background: rgba(0, 173, 239, 1);
width: 196px;
margin-left: -70px;
padding: 4px 5px 5px 7px;
}
div#setting-dropdown-content a {
color: white;
text-decoration: none;
font-size: 16px;
font-family: 'Museo Slab 300';
display: inline-block;
}
div#setting-dropdown i {
display: inline-block;
padding: 5px;
padding-right: 7px;
text-align: center;
border-radius: 10px 10px 0 0;
padding-bottom: 10px;
color: rgba(0, 173, 239, 1);
}
div#setting-dropdown:hover i {
background-color: rgba(0, 173, 239, 1);
color:white;
}
#setting-dropdown:hover #setting-dropdown-content {
display:block;
}
p#setting-dropdown {
font-size: 20px;
font-weight: bold;
}
button#company-logout {
background: rgba(255, 255, 255, 1);
border: none;
border-radius: 40px 40px 40px 40px;
width: 135px;
height: 40px;
font-size: 19px;
font-weight: 900;
font-family: 'Museo Slab 700';
float: right;
top: 54px;
right: -40px;
position: relative;
}
div#log-in {
position: relative;
top: 200px;
}
div#welcome-text {
margin-left: 276px;
font-family: 'Museo Slab 300';
font-size: 22px;
}
div#loginHeader {
margin-top: 60px;
margin-left: 276px;
}
div#dropdown-main-content {
position: relative;
top: 230px;
left: 276px;
display: inline-flex;
}
.dropdown {
position: relative;
width: 11em;
top: 60px;
right: 260px;
}
.dropbtn {
color: white;
width: 100%;
height: 3.2em;
font-size: 16px;
border: none;
text-align: start;
font-weight: 900;
background: rgba(0, 173, 239, 1);
border-radius: 50px 50px 50px 50px;
-moz-border-radius: 0px;
z-index: 2;
text-indent: 23px;
}
.dropdown-content {
display: none;
z-index: -1;
background-color: #f9f9f9;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
margin-top: -64px;
width: 176px;
}
.dropdown a {
background:url("Images/sidearrow.png") no-repeat 7px;
}
.dropdown-content a {
color: black;
padding: .75em;
text-decoration: none;
display: block;
border: 1px solid #000;
border-top: none;
text-indent: 12px;
width: 150px;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #3e8e41;
}
.dropdown-content a:hover {
background:url("Images/sidewhite.png") no-repeat 3px;
background-color: rgb(255,131,0);
color:white;
font-weight:900;
}
.dropdown-content a:first-child {
padding-top: 35px;
background: url("Images/sidearrow.png") no-repeat 7px 36px;
}
.dropdown-content a:first-child:hover {
background: url("Images/sidewhite.png") no-repeat 3px 36px;
color:white;
background-color: rgb(255,131,0);
font-weight:900;
}
img#sphere {
position: relative;
width: 35px;
height: 34px ;
left: 133px;
bottom: 42px;
}
img#sphere-arrow {
position: relative;
bottom: 44px;
left: 99px;
}
div#login-form {
margin-top: 100px;
margin-left: 276px;
}
.page-label {
font-size: 19px;
}
button#loginSubmit {
margin-top: 75px;
background: rgba(0, 173, 239, 1);
border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 40px 40px 40px 40px;
width: 185px;
height: 60px;
font-size: 20px;
font-family: sans-serif;
color: white;
font-weight: 900;
border: none;
position: absolute;
margin-left: 278px;
}
div#login-landingpage{
margin-left: 276px;
margin-top: 90px;
}
select.security-questions {
width: 450px;
height: 40px;
font-weight: bold;
}
.security-question-labels {
font-size: 21px;
font-family: 'Museo Slab 300';
}
<!DOCTYPE html>
<html>
<head>
<title>Averios</title>
<link rel="stylesheet" type="text/css" href="test.css">
<link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" />
<meta charset="utf-8">
</head>
<body>
<div class="company-header">
<img id="averios-logo-image" src="Images/averioslogo.png" width="176" height="129">
<div id="setting-dropdown">
<!-- SETTING DROPDOWN WILL GO HERE -->
<p id="setting-dropdown"> SETTINGS <i class="ion-chevron-down"></i></p>
<div id="setting-dropdown-content">
Change Password
Change Security Settings
</div>
</div>
<button id="company-logout"> LOGOUT </button>
</div>
<div id="log-in">
<div id="loginHeader">
<h1>Portal</h1>
</div>
<br>
<br>
<div id="welcome-text">
<p> Welcome name </p>
<p> Your last login was time on date </p>
<br>
<p> Please select an application below to begin </p>
</div>
</div>
<div id="dropdown-main-content">
<img id="pulse-image" src="C:\Users\user\Desktop\Final-Designs\Images\pulse.png" width="320" height="50" alt=""/>
<div id="dropdown-one">
<div class="dropdown">
<button class="dropbtn">SELECT</button>
<img id="sphere" src="C:\Users\user\Desktop\Final-Designs\Images\sphere.png" alt=""/>
<img id="sphere-arrow" src="C:\Users\user\Desktop\Final-Designs\Images\arrow.png" alt=""/>
<div class="dropdown-content">
option0
option1
</div>
</div>
</div>
<!-- SENTINAL -->
<img id="sentinal-image" src="C:\Users\user\Desktop\Final-Designs\Images\sentinal.png" width="380" height="50" alt=""/>
<div id="dropdown-second">
<div class="dropdown">
<button class="dropbtn">SELECT</button>
<img id="sphere" src="C:\Users\user\Desktop\Final-Designs\Images\sphere.png" alt=""/>
<img id="sphere-arrow" src="C:\Users\user\Desktop\Final-Designs\Images\arrow.png" alt=""/>
<!--<div class="sphere-two">
<div id="arrow-two">
<img src="C:\Users\user\Desktop\Images\arrow.png" width="29" height="27" alt=""/>
</div>
</div>-->
<div class="dropdown-content">
option0
option1
</div>
</div>
</div>
</div>
<div class="company-footer">
<div id="footer-text">
© 2016 Company, All Rights Reserved.
</div>
</div>
</body>
</html>
Problem is
div#dropdown-main-content {
position: relative;
top: 230px;
left: 276px;
display: inline-flex; }
try to remove display to inline and left to 0 like this
div#dropdown-main-content {
position: relative;
top: 230px;
display: inline; }
also remove fixed widths from images and divs, try to use max-width.
update
*{
padding:0;
margin:0 auto;
font-family: 'Museo Slab 300';
}
html{
background: url("Images/backlines.png") no-repeat center center fixed;
}
.averios-header {
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%,color-stop(0, rgb(226, 226, 226)),color-stop(0, rgb(254, 254, 254)),color-stop(0.1, rgb(254, 254, 254)),color-stop(1, rgb(219, 219, 219)),color-stop(1, rgb(209, 209, 209)));
height: 140px;
box-shadow: 0px 2px;
position: absolute;
width: 100%;
top: 0px;
}
.averios-footer{
position: fixed;
right: 0;
bottom: 0;
left: 0;
padding: 1rem;
background-color: #efefef;
text-align: left;
z-index:-1;
box-shadow: 0px -4px rgba(0, 173, 239, 1);
}
img#averios-logo-image {
position: absolute;
left: 270px;
}
div#setting-dropdown {
position: relative;
float: right;
right: 250px;
top: 58px;
}
div#setting-dropdown-content {
display: none;
background: rgba(0, 173, 239, 1);
width: 196px;
margin-left: -70px;
padding: 4px 5px 5px 7px;
}
div#setting-dropdown-content a {
color: white;
text-decoration: none;
font-size: 16px;
font-family: 'Museo Slab 300';
display: inline-block;
}
div#setting-dropdown i {
display: inline-block;
padding: 5px;
padding-right: 7px;
text-align: center;
border-radius: 10px 10px 0 0;
padding-bottom: 10px;
color: rgba(0, 173, 239, 1);
}
div#setting-dropdown:hover i {
background-color: rgba(0, 173, 239, 1);
color:white;
}
#setting-dropdown:hover #setting-dropdown-content {
display:block;
}
p#setting-dropdown {
font-size: 20px;
font-weight: bold;
}
button#averios-logout {
background: rgba(255, 255, 255, 1);
border: none;
border-radius: 40px 40px 40px 40px;
width: 135px;
height: 40px;
font-size: 19px;
font-weight: 900;
font-family: 'Museo Slab 700';
float: right;
top: 54px;
right: -40px;
position: relative;
}
div#log-in {
position: relative;
top: 200px;
}
div#welcome-text {
margin-left: 276px;
font-family: 'Museo Slab 300';
font-size: 22px;
}
div#loginHeader {
margin-top: 60px;
margin-left: 276px;
}
div#dropdown-main-content {
position: relative;
top: 230px;
display: inline-block;
text-align: center;
width: 100%;
}
.dropdown {
position: relative;
width: 11em;
top: 60px;
}
.dropbtn {
color: white;
width: 100%;
height: 3.2em;
font-size: 16px;
border: none;
text-align: start;
font-weight: 900;
background: rgba(0, 173, 239, 1);
border-radius: 50px 50px 50px 50px;
-moz-border-radius: 0px;
z-index: 2;
text-indent: 23px;
}
.dropdown-content {
display: none;
z-index: -1;
background-color: #f9f9f9;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
margin-top: -64px;
width: 176px;
}
.dropdown a {
background:url("Images/sidearrow.png") no-repeat 7px;
}
.dropdown-content a {
color: black;
padding: .75em;
text-decoration: none;
display: block;
border: 1px solid #000;
border-top: none;
text-indent: 12px;
width: 150px;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #3e8e41;
}
.dropdown-content a:hover {
background:url("Images/sidewhite.png") no-repeat 3px;
background-color: rgb(255,131,0);
color:white;
font-weight:900;
}
.dropdown-content a:first-child {
padding-top: 35px;
background: url("Images/sidearrow.png") no-repeat 7px 36px;
}
.dropdown-content a:first-child:hover {
background: url("Images/sidewhite.png") no-repeat 3px 36px;
color:white;
background-color: rgb(255,131,0);
font-weight:900;
}
img#sphere {
position: relative;
width: 35px;
height: 34px ;
left: 133px;
bottom: 42px;
}
img#sphere-arrow {
position: relative;
bottom: 44px;
left: 99px;
}
div#login-form {
margin-top: 100px;
margin-left: 276px;
}
.page-label {
font-size: 19px;
}
input[type="text"] {
background: #EDEDEE;
background : rgba(237, 237, 238, 1);
border-style : Solid;
border-color : #4B4E53;
border-color : rgba(75, 78, 83, 1);
border-width : 1px;
width: 370px;
height: 35px;
font-size: 26px;
}
input[type="password"] {
background: #EDEDEE;
background : rgba(237, 237, 238, 1);
border-style : Solid;
border-color : #4B4E53;
border-color : rgba(75, 78, 83, 1);
border-width : 1px;
width: 370px;
height: 35px;
font-size: 26px;
}
button#loginSubmit {
margin-top: 75px;
background: rgba(0, 173, 239, 1);
border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 40px 40px 40px 40px;
width: 185px;
height: 60px;
font-size: 20px;
font-family: sans-serif;
color: white;
font-weight: 900;
border: none;
position: absolute;
margin-left: 278px;
}
div#login-landingpage{
margin-left: 276px;
margin-top: 90px;
}
select.security-questions {
width: 450px;
height: 40px;
font-weight: bold;
}
.security-question-labels {
font-size: 21px;
font-family: 'Museo Slab 300';
}
button#saveSubmit {
margin-top: 55px;
background: rgba(0, 173, 239, 1);
border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 40px 40px 40px 40px;
width: 170px;
height: 55px;
font-size: 20px;
font-family: sans-serif;
color: white;
font-weight: 900;
border: none;
position: absolute;
margin-left: 278px;
}
button#cancelSubmit {
margin-top: 55px;
background: rgb(75,79,84);
border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 40px 40px 40px 40px;
width: 170px;
height: 55px;
font-size: 20px;
font-family: sans-serif;
color: white;
font-weight: 900;
border: none;
position: absolute;
margin-left: 478px;
}
div#security-form {
margin-top: 60px;
margin-left: 276px;
}
/* TEST */
div#dropdown-col-2 {
display:inline-block;
}
div#dropdown-second {
position: absolute;
left: 1040px;
top: -10px;
}
//HTML
<div class="averios-header">
<img id="averios-logo-image" src="http://lorempixel.com/176/129/"></img>
</a>
<div id="setting-dropdown">
<!-- SETTING DROPDOWN WILL GO HERE -->
<p id="setting-dropdown"> SETTINGS <i class="ion-chevron-down"></i></p>
<div id="setting-dropdown-content">
Change Password
Change Security Settings
</div>
</div>
<button id="averios-logout"> LOGOUT </button>
</div>
<div id="log-in">
<div id="loginHeader">
<h1> Portal</h1>
</div>
<br>
<br>
<div id="welcome-text">
<p> Welcome name </p>
<p> Your last login was time on date </p>
<br>
<p> Please select an application below to begin </p>
</div>
</div>
<div id="dropdown-main-content">
<div id="dropdown-col-2">
<img id="averios-pulse-image" src="http://lorempixel.com/362/46/" alt="" />
<div class="dropdown">
<button class="dropbtn">SELECT</button>
<div class="dropdown-content">
Option1
</div>
</div>
</div>
<!-- SENTINAL -->
<div id="dropdown-col-2">
<img id="averios-sentinal-image" src="http://lorempixel.com/362/46/" alt="" />
<div class="dropdown">
<button class="dropbtn">SELECT</button>
<div class="dropdown-content">
Option1
</div>
</div>
</div>
</div>
<div class="averios-footer">
<div id="footer-text">
© 2016, All Rights Reserved.
</div>
</div>

Resources