How can I insert a background color to my frameset tag. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I insert a background color to my frameset tag.

15th Apr 2020, 10:11 AM
Swapnil Sharma
3 Answers
+ 2
Nope, with frames, each document is separate and nothing else is allowed (mostly, the code at the bottom may work in some browsers). You could kind of hack it in like so: body { background-image: url('path/to/image.jpg'); background-attachment: fixed; background-repeat: no-repeat; }
15th Apr 2020, 10:12 PM
cmcodes
cmcodes - avatar
+ 2
Yes! Many browsers don't even support frameset. Use iframe.
16th Apr 2020, 2:04 AM
cmcodes
cmcodes - avatar
+ 1
Don't use html4 frameset/frame: it's outdated... rather learn to use html5 iframe (more flexible, no specific -- ugly -- doctype needed) ^^
16th Apr 2020, 1:48 AM
visph
visph - avatar