Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I've read a few times that if you need to center an element vertically you can use flexbox. Is this really a good practice? Or is there a better way to do this without flexbox?
Flexbox is the latest and the most improved styling version and it. is an absolute yes to your. question . However it is not the only way , it is possible to use. . and margins and many more but Flexbox is by far the best way that could rather. be difficult to understand in the beginning . Reffer to this amazing. document which. even i still sometime go back to .
https://www.internetingishard.com/html-and-css/flexbox/
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Given that CSS components (buttons etc.) can be used apart from Bootstrap grid system, what are the actual advantages of using Bootstrap over CSS flex model?
I am asking this questions as I always have big problems with margin/padding in Bootstrap 3 as few pixels (15px or so) are added, preventing me to take advantage of the full width of a container. Also, if I try to manually sent the margin to 0 the whole layout is displaced (including outer containers)
One current disadvantage of using flex is that it doesn't work for IE9 or earlier. It's probably a bit soon to be dumping them yet.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
When creating HTML layouts should I use:
DIV classes and ID's
Semantic HTML5
Blend of both?
Semantic HTML5 is preferred, but it depends on your targeted scenario and type of homepage/application.
A more specific answer can be given if you clarify your question a bit.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm using src img to place a logo in the header section. What would the pros and cons be of placing the image in a < div > vs leaving it as a plain ol' img src?
I'm thinking that, for the most part, I should be able to apply the same properties (such as margin, class, ID, etc.) to both. Am I missing something?
Note: I'm not interested in a background-image since I consider the logo content.
tl;dr wrapping is always good thing, if you are going to maintain that code for long enough time.
because you can created very targeted css, show, hide could be easier, round corners and adding text for accessibility will be easier etc..
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to apply CSS transition effect when an element comes to viewport (i.e. when user scrolls to it), but not before.
I already know how to use CSS transitions, but how do I apply them only when the element comes to viewport?
What it the best way of doing this? If there's some library's to simplify the task, I would be glad to know.
Give CSS3 Animate It a go, makes the whole process as simple as adding a few clases.
http://jackonthe.net/css3animateit/
Then you can just add the classes like this to get started.
<div class='animatedParent'>
<h2 class='animated bounceInDown'>It Works!</h2>
</div>
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
This may be a silly question, so my apologies in advance.
I'm designing a CSS grid for my website. The overall width of the grid is 1150px divided into 12 columns. But when it comes to the gutter width: It it best to use a small or big width? Or do you choose that depending on how you want your website to look/be styled?
Thanks for any help!
Gutter is a concept independent of CSS and it is related to a better legibility (easier to read).
There is no predefined rule about the width. Just set the whitespace between columns to some value that you want.
This value depends about what you looking for in your website (legibility, structure, design, information architecture ).