Skip to content

Commit 7af8a97

Browse files
committed
Fixed IE10 CSS issues
1 parent 8d18037 commit 7af8a97

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

src/app/hello/_hello.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ hello {
1111

1212
a {
1313
align-items: center;
14+
background-position: center center;
15+
background-repeat: no-repeat;
16+
background-size: contain;
1417
display: flex;
1518
justify-content: center;
1619
margin: 10px;
1720
height: 200px;
1821
width: 200px;
1922
}
20-
21-
img {
22-
max-width: 100%;
23-
}
2423
}
2524
}

src/app/hello/hello.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ <h1>AngularJS + webpack seed project</h1>
33
<p>Congratulations, you have correctly installed and run this seed project based on:</p>
44

55
<div class="tools">
6-
<a ng-repeat="tool in $ctrl.tools" ng-href="{{::tool.href}}" title="{{::tool.name}}" target="_blank">
7-
<img ng-src="{{::tool.image}}" alt="{{::tool.name}}">
6+
<a ng-repeat="tool in $ctrl.tools"
7+
ng-href="{{::tool.href}}"
8+
title="{{::tool.name}}"
9+
style="background-image: url({{::tool.image}})"
10+
target="_blank">
811
</a>
912
</div>

src/index.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,16 @@ body {
1111
margin: 0;
1212
}
1313

14+
a {
15+
img {
16+
border: 0;
17+
}
18+
}
19+
20+
img {
21+
height: auto;
22+
max-width: 100%;
23+
}
24+
1425
@import 'app/hello/hello';
1526
@import 'app/footer/footer';

0 commit comments

Comments
 (0)