Basically I have a site created all in Photoshop and I am trying to translate it in HTML/CSS and I am having a little trouble on a few styling things I was wondering how do I section the website with multiple background images/color like I was thinking I could do this with divs but I don’t think that is working anyway any/all relevant help would be appreciated
A quick idea of what I mean is
Nav bar
*BG Image1
Content
BG image2
content
_————
footer
3
Answers
I’m nut sure what would you like, but based on your pseudo plan I can imagine something like this:
CSS
Fiddle:
https://jsfiddle.net/ypncww57/2/
Without gat between divs:
https://jsfiddle.net/ypncww57/3/
1.) There is a
<section>
element in HTML5 to which you can assign background images via CSS (using classes or IDs). You can wrap your existing DIVs and other elements in thosesection
tags.2.) If you don’t like that, you can still use DIVs to wrap your sections, and style these (using classes or IDs) via CSS.
Your question is too vague, but anyway, you can use the div or the section tag and style them via CSS to your heart contents