Giving a body like element to a div/span/section | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Giving a body like element to a div/span/section

I've been learning JavaScript, HTML and CSS for 4/5 weeks now and keep coming across a hurdle, the example is... I create a navigation bar which makes use of the body tag, but then I wish to use a carousel for example owl which might need to give seperate instructions to the body tag but the instructions coinside with those of the nav. I've tried adding what would be instructed in the body tag to the relevant div but when I do such thing as images with a particular width outside the parameters of the div box will hide due to instructions given to the body tag. Any help would be hugely appreciated!

8th Sep 2020, 11:04 AM
Kieren Hawthorne
Kieren Hawthorne - avatar
2 Answers
0
I haven't got my Chromebook at the minute (off being fixed) I'm trying to make the div tag act as a sectional body to fit images inside of , so if I've wrote a navigation bar which needs to run through the whole of the page in essence turning the <section> into the main body of the page and it's hiding the overflow of X & Y axis but then I want to create a div to show the overflows of X axis only, would it be possible without effecting the design of items that came before it. I should have the power port coming later today/tommorow to fix my Chromebook so I can send a message with the example.
8th Sep 2020, 11:40 AM
Kieren Hawthorne
Kieren Hawthorne - avatar
0
You have completed html and css and well enough js. I will suggest you to get a course of bootstrap/materialize . It will help you to create web component is sec just by copy paste method.but try this if you have completed html+css js practice well. If you want help in this above question better if you link your code here .so that one can analyse the actual problem and can suggest you some good fix.
8th Sep 2020, 5:50 PM
Divya Mohan
Divya Mohan - avatar