id
for styling, usually, we use class
, since the class can be used by many elements. Not saying that you can't do this with id
, but id is unique.border: 1px solid black
.<button type="button" class="a-button-nostyle m-country-select">
<img class="a-image icon-flag">
<span>Germany</span>
<div data-component="MDropdownFilter" class="m-dropdown-filter country-dropdown has-error is-open" data-component-id="jjj534jk34j5">
<input placeholder="Germany" class="a-input filter" type="text" required="">
<ul>
<li class="ul-container">
<ul class="options">
<li class="a-option" aria-selected="true">
<a href="/content/p11/page.countryselector.de_DE.de_de.EUR.jsp?goeorguri=%2Fde_de%2Findex.htmltarget="_self" class="a-link is-multilanguage internal-link">German</a>
</li>
<li class="a-option">
<a href="/content/page.countryselector.en_DE.en_de.EUR.jsp?goeorguri=%2Fde_de%2Findex.html%3FdebugClientLibs%3Dtrue" target="_self" class="a-link is-multilanguage internal-link">English</a>
</li>
</ul>
</li>
</ul>
</div>
</button>
import 'React'
and similar? I cannot find anything in my searching of github/tc39 and more general searches. Thanks. Found https://gist.github.com/jkrems/769a8cd8806f7f57903b641c74b5f08a#Future
Hello. I am trying to use flex box. I have set display Flex to my nav section. I am then trying to justify-content: flex-end to my button, however it doesn't seem to be working.
https://codepen.io/nnoy01/pen/GRJqgoz
If anyone can tell me what I have wrong, would appreciate it. Its very basic code
.container
element
<nav>
and it looks like this. Not sure if that's what you wanted, but it is aligned to the flex-end
.container
code block in your CSS to nav
. Alternatively, you can just apply the .container
to your nav element and remove the <div>
altogether.
@Nooy90 Let me know if that solves your issue
@sjames1958gm my bad!
// <ul> default styles
display: block;
list-style-type: disc;
margin-top: 1em;
margin-bottom: 1 em;
margin-left: 0;
margin-right: 0;
padding-left: 40px;
// from https://www.w3schools.com/cssref/css_default_values.asp
@Mdezigned Quickest solution to any problem like this:
Learn how to use Chrome DevTools
Whenever I have a problem related to styling, CSS, or Javascript, the solution is almost always solved by popping over to Chrome DevTools. Namely, the "Select An Element To Inspect" saves my life all the time. I'll attach a GIF to show you how your problem could have been solved in less than 5 seconds using DevTools.
All depends on what your goals are, if you want to be able to design your own UI's from the ground up then practice building stuff better via different techniques and what not like any artist. If you don't really care to much and are fine using existing designs then look into ones you could leverage and stick with it.
I personally totally suck at design and thus usually stick with an off the shelve UI lib and or UI guidelines. I'd rather build the functionality then design the UI