Fieldsets and Legends in HTML and CSS

  Рет қаралды 14,900

Steve Griffith - Prof3ssorSt3v3

Steve Griffith - Prof3ssorSt3v3

3 жыл бұрын

This tutorial explains what the HTML fieldset and legend elements are and how you can style them with CSS.
Code from video: gist.github.com/prof3ssorSt3v...

Пікірлер: 25
@benitto_rajf6178
@benitto_rajf6178 3 жыл бұрын
Thank you Steve for doing this great job.
@mohammadhosein6847
@mohammadhosein6847 3 жыл бұрын
Cool CSS trick I never saw before , thank you❤️
@pini01ru
@pini01ru 3 жыл бұрын
Thanks for your videos!
@karthickchandiran2397
@karthickchandiran2397 3 жыл бұрын
Nice video.til now i haven't use this tags. it will be useful for future development
@barungh
@barungh 3 жыл бұрын
Nice animation ... Cool ... :)
@SteveRB511
@SteveRB511 3 жыл бұрын
Enjoyed this tutorial, thank you. Just a note: Chrome 86 and Edge 85 on my Mac (Catalina) show the fieldset triangles positioned the the same as your example. Safari 14 and Firefox 80 show the fieldset triangle shifted down about 2 rem from the fieldset border. From my work on Mac and Windows browsers, it seems like the latest versions of Chrome on both OSs seem to be diverging from what I thought were standards(?) as code that has worked for a couple of years on both Firefox and Chrome has required fixes for the more recent versions of Chrome ... more things for my to do list.
@SteveRB511
@SteveRB511 3 жыл бұрын
@Jack Murimi Thank you, that's a good thing to keep in mind and what I typically do. The triangle issue was just using the code form Steve's GitHub as is. In another instance I had a page background image that that was centered at the top of a page which worked for a couple of years in 8 browsers (4 on Mac, 4 on Windows). Around the first of this year Chrome on Windows started cutting it off on the right and it was not until I added "fixed" to "background" that Chrome displayed it as before.
@MohammadMM786
@MohammadMM786 8 ай бұрын
Facing this issue in chrome 119 also. Is there any way to fix this other than adding negative units to top.Is adding negative units a good fix?
@AKASH._._.
@AKASH._._. 3 жыл бұрын
well explained
@userbilas
@userbilas 3 жыл бұрын
+ like from me! cool) as always!-D
@RahulSingh-rk5dz
@RahulSingh-rk5dz 3 жыл бұрын
Steve knows how to do some dark magic with css & html.
@damebanda3180
@damebanda3180 3 жыл бұрын
How do I align the input elements like the ones in this video?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
The CSS is in the code that I attached in the description. If you want more info about CSS Grid and Flexbox I have a playlist - kzbin.info/www/bejne/noqtp6upnNN6g6M
@programmingwithdipayan7280
@programmingwithdipayan7280 3 жыл бұрын
Everyone:- day by day every subscriber is growing Me:- why steave Griffith channel subscribers are not growing 😭
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
The more you share, the more it grows. 😀 Thanks for your support.
@programmingwithdipayan7280
@programmingwithdipayan7280 3 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 welcome sir. ❤️
@musicalgames935
@musicalgames935 3 жыл бұрын
Fullform of rem??
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
Rem is a very easy unit to use. You set a base value inside the HTML style and then the designer is encouraged to use that value or regular variations of that to create regular visual rhythm.
@programmingwithdipayan7280
@programmingwithdipayan7280 3 жыл бұрын
Rem stands for "relative measurement" I think 🤔
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
@@programmingwithdipayan7280 it stands for Root Em. Em is the M-height unit. Root em sets the value in the HTML element so it can be referenced throughout the page
@programmingwithdipayan7280
@programmingwithdipayan7280 3 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 ohh 👍👍👍 thank you. 😃😃😃😃😃❤️
@Viralvlogvideos
@Viralvlogvideos 3 жыл бұрын
why dont u use space field legend{ } rather then fieldset >lengend{ }?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
Using the > turns legend into a child instead of just a descendent. It makes the CSS more specific and more efficient for the browser to run.
@Viralvlogvideos
@Viralvlogvideos 3 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 oh, I get confused 😥 thanks for explaination may be u should make a video on this topic
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
Here - kzbin.info/www/bejne/qJDEgZSIer-Vr5I
Mobile Keyboards and HTML Forms
3:14
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 4,3 М.
Form Validation I - HTML and CSS
22:35
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 6 М.
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 37 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
Great Responsive Text Overlays on Images
17:31
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 12 М.
Working with Select, Option, and Optgroup in HTML and JavaScript
13:29
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 27 М.
The NEW CSS aspect ratio property
7:15
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 13 М.
More HTML elements that almost no one uses (but should!)
15:47
Kevin Powell
Рет қаралды 49 М.
Using the CSS Numeric Functions - min, max, calc, clamp, and minmax
10:57
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 15 М.
How to Use the CSS clamp Method
7:15
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 18 М.
Custom Events Dispatched from Web Components
20:32
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 1,6 М.
Improve your form validation hints without JS!
12:46
Kevin Powell
Рет қаралды 66 М.
CSS Height vs Line-Height
8:07
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 28 М.
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 37 МЛН