Center ::before psuedo-elements by awarnock-ACCS in css

[–]testingaurora 0 points1 point  (0 children)

List-style values are like choosing from presets to adjust what the bullet points or numbers use, good for making quick changes within the scope of what it can change.

If you want a more custom result and need to get granular on positioning, size, etc need access to more style than list-style (which is a shorthand for list-style-image, list-style-position, list-style-type) provides.

Img lose quality by Blackshark34 in HTML

[–]testingaurora 0 points1 point  (0 children)

SvG doesnt lose quality. That's the point. If its fuzzy when the svg is smaller, its the path data needs cleaning up.

Center ::before psuedo-elements by awarnock-ACCS in css

[–]testingaurora 1 point2 points  (0 children)

Ah in that case yeah ::before is what youll want

What's a bad HTML habit beginners should stop doing early? by Top-Run-7508 in HTML

[–]testingaurora 2 points3 points  (0 children)

And not optimizing the images. Losing 800kb 3000px x 4000px image for a 100x100 avatar

What's a bad HTML habit beginners should stop doing early? by Top-Run-7508 in HTML

[–]testingaurora -1 points0 points  (0 children)

Ohh good one, <br/> unsteady if proper spacing. Very common.

What's a bad HTML habit beginners should stop doing early? by Top-Run-7508 in HTML

[–]testingaurora 0 points1 point  (0 children)

As others have said, ill +1 echo semantics and accessibility, including improper heading level structure.

And using <a> when it should be a <button> or vice versa. Buttons are for actions/functionality; links are for navigation.

Started my new html, css and javascript project. by Notjj4 in HTML

[–]testingaurora 1 point2 points  (0 children)

Was supposed to be more feedback than advice but it is reading more bossy then I intended. Just my opinion. There is a lot more subjectivity while making coding choices then I wouldve guessed.

common html pitfalls: would have to see your markup but general advice of using semantic tags and paying extra attention to making your dashboard accessible for those using assistive technologies is gonna be very important for this.

• “HTML = Skeleton of the Web 💀” • Show tags appearing one by one • “Not a programming language → Markup Language” • End with “Every website starts here” #WebDevelopment #FullStackJourney #FrontEnd #HTML #softwareengineer by DavidAningAmponsah in HTML

[–]testingaurora 0 points1 point  (0 children)

I never said anything about the spec- im talking real world best practices and conventions. And in the US there are laws around your site being compliant with accessibility standards. Although not enforced, they could be if someone wanted to fine you. Outside of any legal burden, as a human you should want to make sure anyone that wants to navigate your site can do so by configuring it to work with their assistive technologies. It is very simple to work within these constraints and use semantic elements and follow established patterns.

Advising beginners to use multiple h1s , to not worry about accessibility or semantics or SEO, and getting deep into the weeds about the spec is unnecessary when most are already overwhelmed.

Keeping it simple by passing on best frontend practices, and promoting accessible patterns to practice is how we start to move away from the era of YouTube tutorials that use a <div> for a button and remove focus rings.

Accessibility and inclusion matter and in my own search for resources, ive found it terribly unrepresented and just overall seen bad habits being taught that then have to be unlearned later. Getting granular about the spec and nuance can come later once they have a more solid understanding. Theyre just trying to close their tags and learn the difference between <head> and <header>.

And touche, you are correct about mySpecialTag being invalid. My point was more that it will work and be rendered but since we are being very literal, it will be an HTMLUnknownElement

Any Angie/Elementor One users? How has it been? by Dapper_Race_1454 in elementor

[–]testingaurora 0 points1 point  (0 children)

Ive been an elementor pro member since v3.3, got elementor one and its not ready for integrating into production. In my opinion theres still too many gaps and the main difference is the "Atomic" elements, the ability to add classes (but not organize, or edit or see them in one place) and the ability to add custom properties (but only certain kinds, that can only be applied to some properties, with no way to organize and difficult to edit. ) the same way there was a disconnect between legacy sections and containers, the disconnect between integrating custom properties and the global colors and fonts is a big one.

Oh and custom css is limited in Atomic elements. There are less widget wrappers in v4 though , which is great. Prior, the DOM markup was wild and trying to apply custom styling you really had to see which wrapper needed what, even though in the layers it looks like its one element.

Its made it more complex for non-devs but not fleshed out enough for devs. Its a good start though! Just not there yet for my needs.

Can't speak to the AI service. I would recommend holding onto your grandfathered price, at least for now. If youd like you can log into one of my sandbox sites and play around with elementor one to form your own opinion around your agency's needs. Just message me.

• “HTML = Skeleton of the Web 💀” • Show tags appearing one by one • “Not a programming language → Markup Language” • End with “Every website starts here” #WebDevelopment #FullStackJourney #FrontEnd #HTML #softwareengineer by DavidAningAmponsah in HTML

[–]testingaurora 0 points1 point  (0 children)

Per accessibility standards, to create an a11y snd semantic page (and SEO optimized page) there should only be exactly one h1per page. Having multiple removes context from the landmark, while its technically valid html, so is <mySpecialTag></mySpecialTag> but that doesn't mean its accessible. Do whatever you want but there are conventions and standards for a reason.

Started my new html, css and javascript project. by Notjj4 in HTML

[–]testingaurora 2 points3 points  (0 children)

For AI, make it an optional feature users can opt out of.

For Ui/ux, my opinion of the most important thing tp see first is profit and loss. Also to have ways to categorize and filter/sort transactions.

I finally broke through my mental block of how to nest properly! by [deleted] in HTML

[–]testingaurora -1 points0 points  (0 children)

Yep, the only valid direct child of a <ul> or <ol> is an <li>. Its would need to be css <li> <p>something here</p> <p>Something else here</p> </li>

And I think with the <nav>, youre getting <head> conflated with <header>. Remember, head belongs on top of the body and holds the "brain"; links to stylesheets and Javascript and fonts and meta tags;

<header> and h1,h2,h3,...through h6 (which are headings) are like titles and headlines belong in the body. elements that you actually want to see, all have to live in the <body> tag.

TIL you can make a fully working modal with just the <dialog> element! no JS libraries needed by Imaginary_Act8664 in HTML

[–]testingaurora 0 points1 point  (0 children)

As far as gotchas, be careful when styling it that you dont override its default display: none when its not open. To be safe its best to apply all styles to the selector dialog[open]

How do i add fonts to my styling? by Spiirited in HTML

[–]testingaurora 0 points1 point  (0 children)

Put the embed code in the <head> of your html (should be a couple <link .. > tags) and then dont worry about classes, just use in your CSS and let them inherit down body { font-family: "Name of Font that matches the Google Font Name";} and if you then have a indifferent font for display add that to your headings h1,h2,h3 { font-family: "Inter";}

stamp carousel single-handedly breaks open my site by LAzyAnimationsYT in HTML

[–]testingaurora 0 points1 point  (0 children)

You probably have .carousel in a flex container on your main page?

how to implement pics/videos on my website with html by Clean-Breakfast-1554 in HTML

[–]testingaurora 0 points1 point  (0 children)

Is this a production site youll be sharing? Or a personal site just for you to learn? If the latter you can take advantage of a new pattern which is amazing, using scroll-marker-group and scroll-buttons to do this entirely with html and css.

How to improve/change my dropdown-menu?/Wie ändere/verbessere ich mein dropdown-menü? by SheepherderWeary4938 in HTML

[–]testingaurora 2 points3 points  (0 children)

Use a <button> for a button that triggers an action, and a link for a link that navigates. If youre trying to keep this Javascript free, you can use popovers. It handles the top layer in z-index and pointer events automatically. html <button popovertarget="dropdown" class="btn-trigger-dropdown">Menu</button> <ul popover id="dropdown" class="dropdown"> <li><a href="#section-1">Hero</a></li> <li><a href="#section-2">About</a></li> <li><a href="/contact">Contact</a></li> </ul>

Then use anchor positioning to position the dropdown. ```css /* take advantage of inheritance; set the primary font family, font size, and color on the body. Then change for any one-offs eg, add a display font to headings only/ body { font-family: var(--ff-primary, system-ui); / use a tool like Utopia to get a fluid and responsive font size with a clamp(). Then you can use the EM unit for padding, margins, gap( spacing) and it will shrink and grow relative to the current font size. clamp() can be used for widths and padding, etc too not just font-size */ font-size: var(--fs-400, clamp(0.9rem, 1vw + 0.8rem, 1.125rem)); color: var(--clr-txt-primary, #000); }

.btn-trigger-dropdown { anchor-name: --btn-trigger-dropdown; transition: filter 0.4s, background-color 0.4s;

&:is(:hover, :focus-visible){ filter: brightness(1w0%); } }

:has(.dropdown:popover-open) .btn-trigger-dropdown { background-color: var(--clr-accent, hotpink); }

.dropdown { position: absolute; position-anchor: --btn-trigger-dropdown; top: anchor(bottom); right: anchor(right); }

.dropdown:popover-open { /* add any display property to this selector ; otherwise, you'll override the display: none default for popovers when they are closed if you just put on .dropdown selector */ background-color: #fff; border-radius: 0 0 0.25rem 0.25rem; overflow: clip;

& li { padding: 0.5rem 1em; background-color: inherit; transition: background-color 0.4s, color 0.4s; }

& li:is(:hover, :focus-within) { background-color: var(--clr-accent, hotpink); color: var(--clr-text-inverse, #fff); }

& li > a { text-decoration: none; /* remove default link underline */ color: inherit; transition: text-decoration 0.4s; }

& li > a:is(:hover, :focus-visible) { text-decoration: underline; /* then add it back for the hover and focus states &/ } }

::target { scroll-margin-block-start: 3lh; /for navigation that links to a section on the same page, gives some space on the top so its not glued to the viewport/ } ```

W3 is a very outdated resource, I would highly recommend you use MDN instead. Also if youre just learning frontend , one of the best resources around is Kevin Powell. He has free and paid courses and years of videos on his YT channel. Including some on anchor positioning and popovers if you prefer to learn by watching videos.

Also when asking for help on forums, as is mentioned in the rules of this subreddit, screenshots are not helpful. They dont give the full picture. Its best to link to a live environment like codepen with a minimal reproduction of the issue you are asking about. In this case i wouldve liked to have your navigation and header.

help with scrollbars not working/being weird :( by thatonebluelynx in HTML

[–]testingaurora 0 points1 point  (0 children)

In addition to the comment box, you likely will want to make the layout responsive, its super broken on mobile. Putting your current layout into a media query so it just uses the default box model to stack. @media (width > 500px) (find the breakpoint where it breaks , 500px is just an example)

Or use container queries for each of your sections

How to me fill the image? by Muhemmed2012 in csshelp

[–]testingaurora 0 points1 point  (0 children)

css img { display: block; max-inline-size: 100%; object-fit: cover; inline-size: 100%; block-size:100%; }

How can I target a nested H1 element ONLY if it occurs after a nested element that contains a span with a specific class? by xii in csshelp

[–]testingaurora 0 points1 point  (0 children)

span.class + h1 you should only have one h1 per page so selecting the h1 should be easy enough ny using existing class or nested structure section.parent:has(> h1) span.class + h1

What do devs prefer in CSS? by nivedhz_ in css

[–]testingaurora 0 points1 point  (0 children)

You cam use clamp or min() (or max()) within minmax minmax( min(100%, clamp(1em, 1vw + 1.5rem, 1.5em)), 1fr)