Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
training-responsive-layout
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ajmal.S
training-responsive-layout
Commits
c1ad9fb7
Commit
c1ad9fb7
authored
Feb 16, 2022
by
Ajmal.S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grid layout modified
parent
1137cd30
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
151 additions
and
29 deletions
+151
-29
grid.css
assets/css/grid.css
+111
-0
grid-layout.html
grid-layout.html
+40
-29
No files found.
assets/css/grid.css
0 → 100644
View file @
c1ad9fb7
body
{
margin
:
0
;
font-family
:
"Open Sans"
,
sans-serif
;
color
:
#fff
;
font-size
:
14px
;
}
hr
{
border
:
1px
solid
#fff
;
}
.info
{
text-align
:
left
;
padding
:
10%
0
10%
;
width
:
50%
;
}
.logo
{
position
:
absolute
;
top
:
2%
;
left
:
8%
;
}
figure
{
margin
:
0
;
position
:
relative
;
min-height
:
20em
;
max-height
:
25em
;
}
figure
img
{
width
:
100%
;
height
:
100%
;
object-fit
:
contain
;
object-position
:
80%
;
}
.grids
{
display
:
grid
;
width
:
auto
;
}
.grid
{
padding
:
10%
;
min-height
:
400px
;
height
:
100vh
;
max-height
:
700px
;
box-sizing
:
border-box
;
overflow
:
hidden
;
display
:
grid
;
}
.grid
:nth-of-type
(
1
)
{
background-color
:
#41ca6e
;
}
.grid
:nth-of-type
(
2
)
{
background-color
:
#fab153
;
}
.grid
:nth-of-type
(
3
)
{
background-color
:
#7277d5
;
}
.grid
:nth-of-type
(
4
)
{
background-color
:
#f87d51
;
}
.grid
:nth-of-type
(
5
)
{
background-color
:
#ed5466
;
}
.grid
:nth-of-type
(
6
)
{
background-color
:
#4ec2e7
;
}
/* RESPONSIVE CSS */
@media
screen
and
(
min-width
:
540px
)
{
.grid
{
grid-auto-flow
:
column
;
max-height
:
500px
;
}
}
@media
screen
and
(
min-width
:
768px
)
{
.grids
{
grid-template-columns
:
repeat
(
2
,
1
fr
);
}
.logo
{
left
:
2%
;
}
.grid
{
max-height
:
300px
;
}
}
@media
screen
and
(
min-width
:
1440px
)
{
.grids
{
grid-template-columns
:
repeat
(
3
,
1
fr
);
}
.grid
{
max-height
:
480px
;
}
}
/* END RESPONSIVE CSS */
\ No newline at end of file
grid-layout.html
View file @
c1ad9fb7
...
...
@@ -5,67 +5,78 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Grid-Layout
</title>
<link
href=
"https://fonts.googleapis.com/css?family=Open+Sans"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"assets/css/
style
.css"
>
<link
rel=
"stylesheet"
href=
"assets/css/
grid
.css"
>
</head>
<body>
<div
class=
"grids"
>
<div
class=
"grid
col-1
"
>
<div
class=
"grid"
>
<div
class=
"logo"
>
<img
src=
"assets/img/logo-aoc.png"
width=
"85"
height=
"30"
>
</div>
<div
class=
"info"
>
<img
src=
"assets/img/logo-f-secure.png"
width=
"50"
height=
"50"
>
<p>
Astonishing
<br>
features requires
<br>
worry-free security
</p>
<
div
class=
"underline"
></div
>
<
span>
1 Year Free Mobile Security
</span
>
<p>
Astonishing
features requires
worry-free security
</p>
<
hr
/
>
<
p>
1 Year Free Mobile Security
</p
>
</div>
<img
src=
"assets/img/image-1.png"
align=
"right"
class=
"c-margin-t"
>
<figure>
<img
src=
"assets/img/image-1.png"
>
</figure>
</div>
<div
class=
"grid
col-2
"
>
<div
class=
"grid"
>
<div
class=
"info"
>
<img
src=
"assets/img/logo-digitainment.png"
width=
"55"
height=
"40"
>
<p>
Be hooked!
</p>
<
div
class=
"underline"
></div
>
<
span>
2000+ Movies from Bollywood
</span
>
<
hr
/
>
<
p>
2000+ Movies from Bollywood
</p
>
</div>
<img
src=
"assets/img/image-2.png"
align=
"right"
>
<figure>
<img
src=
"assets/img/image-2.png"
>
</figure>
</div>
<div
class=
"grid
col-3
"
>
<div
class=
"grid"
>
<div
class=
"info"
>
<img
src=
"assets/img/logo-adaptxt.png"
width=
"90"
height=
"30"
>
<p>
The best things in
<br>
life are free
</p>
<div
class=
"underline"
></div>
<span>
Free Mobile Pouch
</span>
<p>
The best things in life are free
</p>
<hr
/>
<p>
Free Mobile Pouch
</p>
</div>
<img
src=
"assets/img/image-3.png"
align=
"right"
>
<figure>
<img
src=
"assets/img/image-3.png"
>
</figure>
</div>
<div
class=
"grid
col-4
"
>
<div
class=
"grid"
>
<div
class=
"info"
>
<img
src=
"assets/img/logo-hungama.png"
width=
"90"
height=
"20"
>
<p>
The thump
<br>
never ends here
</p>
<
div
class=
"underline"
></div
>
<
span>
1000’s of songs
</span
>
<p>
The thump never ends here
</p>
<
hr
/
>
<
p>
1000’s of songs
</p
>
</div>
<img
src=
"assets/img/image-4.png"
align=
"right"
>
<figure>
<img
src=
"assets/img/image-4.png"
>
</figure>
</div>
<div
class=
"grid
col-5
"
>
<div
class=
"grid"
>
<div
class=
"info"
>
<img
src=
"assets/img/logo-adaptxt.png"
width=
"90"
height=
"30"
>
<p>
Being globally you
</p>
<
div
class=
"underline"
></div
>
<
span>
21 Indian
&
Foreign Languages
</span
>
<
hr
/
>
<
p>
21 Indian
&
Foreign Languages
</p
>
</div>
<img
src=
"assets/img/image-5.png"
align=
"right"
>
<figure>
<img
src=
"assets/img/image-5.png"
>
</figure>
</div>
<div
class=
"grid
col-6
"
>
<div
class=
"grid"
>
<div
class=
"info"
>
<img
src=
"assets/img/logo-read-where.png"
width=
"50"
height=
"45"
>
<p>
For the wise
</p>
<
div
class=
"underline"
></div
>
<
span>
1000 pts Discount
<br>
on Subscription
</span
>
<
hr
/
>
<
p>
1000 pts Discount on Subscription
</p
>
</div>
<img
src=
"assets/img/image-6.png"
align=
"right"
class=
"c-margin-t"
>
<figure>
<img
src=
"assets/img/image-6.png"
>
</figure>
</div>
</div>
</body>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment