CSS is powerful, you can do a lot of things without JS
1–10 of 319 posts
Re: CSS is powerful, you can do a lot of things without JS
#2Re: CSS is powerful, you can do a lot of things without JS
#3The problem with using css this way is that it's not as obvious what's supposed to happen as it is when using js. I'd love for there to be some explanation within the examples of _why_ they work - I've just been reading the first modal example but I can't really understand it
Still neat though.
Re: CSS is powerful, you can do a lot of things without JS
#4Is that really what you want? Does that properly describe the content of your document?
Re: CSS is powerful, you can do a lot of things without JS
#5I don't think this is very useful, but it is a fun exercise in CSS.
Re: CSS is powerful, you can do a lot of things without JS
#6Re: CSS is powerful, you can do a lot of things without JS
#7The problem with using css this way is that it's not as obvious what's supposed to happen as it is when using js. I'd love for there to be some explanation within the examples of _why_ they work - I've just been reading the first modal example but I can't really understand it
The :target pseudoclass is used, along with anchors. It means that it also pollutes the browser history, which is somewhat appropriate for modals, but probably not what you want. Still neat though.
Re: CSS is powerful, you can do a lot of things without JS
#8Earlier quoted context omitted.
The :target pseudoclass is used, along with anchors. It means that it also pollutes the browser history, which is somewhat appropriate for modals, but probably not what you want. Still neat though.
How does the browser know which modal is targetted though? I thought :target had to match the hash, but both links just link to # :S
Yup that all makes sense now then
Re: CSS is powerful, you can do a lot of things without JS
#9Re: CSS is powerful, you can do a lot of things without JS
#10Really cool and good to see what how powerful CSS3 is, but not sure how useful it is, particularly when I need this behaviour working on older mobile browsers.