Skip to content
loading...

How do I write this HTML line better

github logo ・1 min read  

Just getting back into programming, know the basic's and a bit more but I tend to write bad code(I think anyways).

https://codepen.io/anon/pen/yjVqXQ

My question is, do I have to use span tags in this to make it work? I am trying to set it up so in css I'll be making ex nihilo sit on-top of SOFTWARE. It just looks weird to me. Would making two h1's and put it into a flex box better?

twitter logo DISCUSS (4)
markdown guide
 

If you want them to be simply on top of one another, just make them both <div>s instead of <span>s. By default, spans have the property "display: inline" which makes them fall side by side. Divs, on the other hand (since they default to "display: block") will fill the entire width of their container.

 

Hmm, sit on top as in this:

Ex nihilio
Software

Or would ex nihilio overlay software?

For whatever reason I don't see any CSS, maybe cause I'm on a mobile view.

 
 
Classic DEV Post from Jul 31 '19

What's the big deal with IAsyncEnumerable<T> in .NET Core 3.0?

Learn about what challenges `IAsyncEnumerable<T>` is intended to solve and how to implement it in our own applications.

Darcey Mckelvey profile image

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️