Как переместить одну ли в улке вправо? (см. изображения) ⇐ CSS
Как переместить одну ли в улке вправо? (см. изображения)
my navbar devtools
This is the components code, I am using shadcn:
const style = { marginRight: 'auto !important', alignSelf: 'end !important', }; export default function AccountIcon() { return ( DE ); } const style = { width: '100vw', display: 'flex', justifyContent: 'flex-start', }; export default function Navbar() { return( Menu Home
Get Started
About
Settings Item Two Link ); } I am trying to move the AccountIcon to the far right
I tried making the parent flexbox width to 100vw and justify content to flex start, and the AccountIcon margin right to auto and align self to end. I also tried making margin left to auto. Changing justifycontent to space between
I expect the AccountIcon to be on the far right but that is not happening.
Источник: https://stackoverflow.com/questions/780 ... see-images
my navbar devtools
This is the components code, I am using shadcn:
const style = { marginRight: 'auto !important', alignSelf: 'end !important', }; export default function AccountIcon() { return ( DE ); } const style = { width: '100vw', display: 'flex', justifyContent: 'flex-start', }; export default function Navbar() { return( Menu Home
Get Started
About
Settings Item Two Link ); } I am trying to move the AccountIcon to the far right
I tried making the parent flexbox width to 100vw and justify content to flex start, and the AccountIcon margin right to auto and align self to end. I also tried making margin left to auto. Changing justifycontent to space between
I expect the AccountIcon to be on the far right but that is not happening.
Источник: https://stackoverflow.com/questions/780 ... see-images
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение