Comments (3)
Oh no, looks like I forgot to add DOCTYPE html to many of the solutions.
Thanks for finding this! I didn't know there was a subtle difference.
For some reason if you set:
display: block;
On the image the extra space will disappear (images by default are display: inline-block;
)
display: inline-block;
tends to have alignment issues since it's meant to represent objects like buttons or images inside a line of text so inline-block elements will add some extra space around them as if they are inside a line of text.
It must have changed in HTML 5 to always add this extra space, although I'm not exactly sure how it works 🤷♂️
I'll update the solutions though
from html-css-course-2022.
<button class="addtocart-button">
Add to Cart
</button>
<button class="signup-button">
Sign up
</button>
</div>
from html-css-course-2022.
hir sir..can u please check my codes .. ty
from html-css-course-2022.
Related Issues (20)
- can't able referesh the local host page HOT 2
- Flex-box working the wrong way HOT 1
- html
- Lesson 11: Incorporating grid into video previews HOT 2
- Project 9g - Divs not loading side by side HOT 1
- Yu
- Can i add simple website using HTML CSS and javascript
- Create Calculator using HTML CSS and Javascript HOT 3
- exercises 4h-4j HOT 5
- 13c
- 4i
- Css HOT 3
- Margin Error On Line 17 Exercise 4j (3D button)
- 4k.html
- Front end developer
- Hi
- 3d click
- WebDevCourse
- SuperSimpleDev
- Htmlcss class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-css-course-2022.