skip to Main Content

Html – Apply CSS style depending of tbody height

I have simple example that applies style when div height is less than 400px. <html> <head> <style> .card-container { container-type: size; container-name: sidebar; } .card-container { background: #ffe4e8; width: 200px; height: 100px; } @container sidebar (max-height: 400px) { .card-container div:first-child…

VIEW QUESTION

html table with span issues

I am trying to create a table with colspan and rowspan inside. <!DOCTYPE html> <html> <head> <style> table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; } td, th { border: 1px solid black; text-align: left; padding: 8px; } .top…

VIEW QUESTION
Back To Top
Search