Float → Slidebar
You have probably visited a website that has at least one sidebar. Some are very simple and others are more complex, but the goal is the same. In this exercise, we will learn how to create a very simple sidebar layout.
To achieve this you need to add the float property in two elements so they look like the image below.
Could you please post a link to the task?
Guessing from your description I would say that the “Main Content” element needs float: left; in its CSS and the “Side Bar” needs float: right;
I hope that helps!
Have a nice day,
Michael
PS: Your email address is visible in your post. I think it somehow ended up in the optional “name” field of your profile. I recommend removing it.
Thanks! Since I don’t have an account there, I can’t see the given source code but yes, the float properties I wrote above seem right. Don’t forget to also add appropriate classes to both elements like <div class="mid-element main-content">Main Content</div>
I just have to migrate one CentOS 8 server and was curious what’s going on the Rocky forum. Clicked through some posts and then I saw “justsomeone” and thought: “Wait a minute, I know this guy!”
Looking for help for this exercise.
Write a page that contains three paragraphs <p> (all without quotes):
id = “main-information”, text — “Main information”;
id = “history”, text — “History”;
id = “tours”, text — “Tours”;
Add a navigation block to the page using <nav> . The navigation should contain three links (one per paragraph), each with the same text as in a paragraph. All the links should have title attributes that match their text. The title of the page should be Great Britain .
Could to tell us which part you have problems with?
Please share your current work in an online editor like https://codepen.io. Then we can tell your how to improve your code specifically. Otherwise this just sounds like we are solving exercises for you