I am still a newbie to html and css, seeing as I have been working with c++ and python for quite so time, and have been having trouble with the div tag. Whenever I decalre a div tag and make the background-color: black it tends to go across the screen, is there a way to make it so that the background color does not move all the way across the screen? Also I would like to know if it is possible to make the div tag's background-color automatically go all the way down the screen, thank you.
Jump to Post
There is an html attribute called "width". You can specify an element's width with this attribute.
Do a quick google search for css and you shall get along pretty good.
All 5 Replies
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.