
/* HTML Code Ahmadwebx*/
JSCermics
Joseph Shmoe | Ceramics
/* CSS Code */
body {
font-family: Cormorant, serif;
}
Display: inline-block;
/*CSS Code*/
h1 {
display: inline-block;
}
.links {
display: inline-block;
}
.links li {
display: inline-block;
}
.links a {
color: black;
text-decoration: none;
font-size: 20px;
margin: 0 8px;
}
/*CSS Code*/
.links ul {
padding: 0;
}
.navbar {
margin: 32px;
}
a.active {
border-bottom: 1px solid black;
}
Add image links at once press and hold alt button and select all the point where the image link is start,
.
write Now image is added, but large in size. Give the
width: 40%;
which brings two images in row. We give the
height: 500px;
that makes equal size of all the images.
/* HTML Code Ahmadwebx*/
Joshua Vase
Larkin Plates
Fortessa Cloud No 2
Astoria Collection
Lava Beach Stoneware
Sand Canyon Bowls
Lennon Collection
Mendocino Dinnerware
/*CSS Code*/
.card {
width: 49.75%;
display: inline-block;
box-sizing: border-box;
padding: 16px;
}
.card img {
height: 500px;
width: 100%;
}
.card h2 {
display: inline-block;
}
If we add h2 under every image the image is now one in a row. So why it does happen? Because there is space btw every other element. So, we add
element in every image and h2’s. and change
display: inline-block
to div. Now change
width: 100%;
for image. Now, change the 40% width into
width: 49.75%
or approach to 50%. Because there is a space between two div. Now we use
box-sizing: border-box;
so, we use padding now instead of margin because padding is use inside the element.
/* HTML Code Ahmadwebx*/
Joshua Vase
Larkin Plates
Fortessa Cloud No 2
Astoria Collection
Lava Beach Stoneware
Sand Canyon Bowls
Lennon Collection
Mendocino Dinnerware
/* CSS Code*/
.gallery {
padding: 16px;
}
.card {
width: 49.75%;
display: inline-block;
box-sizing: border-box;
padding: 16px;
}
.card img {
height: 500px;
width: 100%;
object-fit: cover;
}
.card h2 {
display: inline-block;
margin: 8px 0 16px 0;
font-weight: 300;
}
Add footer content as separate section.
/* HTML Code Ahmadwebx*/
Designing, making, and selling goods of timeless design and uncompromising
integrity—made thoughtfully, honestly, and with pride—to be enjoyed with similar intention.
Let's work together.
joseph@jsceramics.com
(212)772-5445
/* CSS Code*/
.about {
width: 40%;
min-width: 600px;
margin: 100px 0 100px 200px;
}
.about h3 {
font-size: 40px;
font-weight: 300;
}
.contact {
margin-top: 100px;
}
.contact p {
margin: 0;
font-size: 20px;
}
.cta {
border-bottom: 1px solid black;
display: inline-block;
padding-bottom: 8px;
margin-top: 0;
}
/* HTML Code Ahmadwebx*/
JSCermics
Joseph Shmoe | Ceramics
Joshua Vase
Larkin Plates
Fortessa Cloud No 2
Astoria Collection
Lava Beach Stoneware
Sand Canyon Bowls
Lennon Collection
Mendocino Dinnerware
Designing, making, and selling goods of timeless design and uncompromising
integrity—made thoughtfully, honestly, and with pride—to be enjoyed with similar intention.
Let's work together.
joseph@jsceramics.com
(212)772-5445
/* CSS Code Ahmadwebx*/
body {
font-family: Cormorant, serif;
}
h1 {
display: inline-block;
font-weight: 300;
margin: 0 32px 0 0;
}
.links {
display: inline-block;
}
.links li {
display: inline-block;
}
.links a {
color: black;
text-decoration: none;
font-size: 20px;
margin: 0 8px;
}
.links ul {
padding: 0;
}
.navbar {
margin: 32px;
}
a.active {
border-bottom: 1px solid black;
}
.gallery {
padding: 16px;
}
.card {
width: 49.75%;
display: inline-block;
box-sizing: border-box;
padding: 16px;
}
.card img {
height: 500px;
width: 100%;
object-fit: cover;
}
.card img:hover {
opacity: 0.9;
}
.card h2 {
display: inline-block;
margin: 8px 0 16px 0;
font-weight: 300;
}
.about {
width: 40%;
min-width: 600px;
margin: 100px 0 100px 200px;
}
.about h3 {
font-size: 40px;
font-weight: 300;
}
.contact {
margin-top: 100px;
}
.contact p {
margin: 0;
font-size: 20px;
}
.cta {
border-bottom: 1px solid black;
display: inline-block;
padding-bottom: 8px;
margin-top: 0;
}
Ghulam Ahmad is an Excellent Writer, His magical words added value in growth of our life. Highly Recommended
- Fazal Rehman Tweet
6 Responses