Seeking assistance as a newcomer working on designing a mock car sales website for a project. I have created a basic layout using divs
and successfully placed the logo in the top right of the banner with CSS:
img.logo
{
position: relative;
top:15px;
left: 24px;
}
However, encountering difficulty when attempting to add a "badge" to the right side of the banner, which causes the logo to shift. Is there a way to keep them aligned on the same line? Additionally, what is the preferred method for positioning elements within a webpage - CSS or separate divs?