Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
pagrette898yIt's 2 different state which can have different properties
<body><footer> or <div> are block because.. they are a block
<h1><strong><span> are type inline because there is no line return are the end of these -
matanl26448yinline: document flow, meaning it goes with the text, doesn't break the line, doesn't have width/height properties but text-height instead.
block: takes the whole horizontal space, default for images, tables, divs. Has specified width and height.
If you want it to not break the line and have height/width you use "inline-block".
Didn't mention flexbox since it's a more complicated display, try to figure these and experiment a little then read about flex box -
nalread4048yI'd say it'd be a valid question for a ~junior position. Higher thant that it could be interpreted as kinda insulting? I could be wrong, just got out of bed...
Related Rants
-
skiilaa41"Are you familiar with uploading your code to Google Drive?" I left the building at that exact moment.
-
qbalsdon49Got this from a recruiter: We are looking for a **Senior Android Developer/Lead** at Philadelphia PA Hiring ...
-
nikolatesla9At the ending part of the interview, I asked a final question to the HR. Me: "So, what language is mostly use...
Question: What's the difference between display: block and display: inline?
Me: Thanks for your time...
undefined
wk48