html - How do I create and align three 'div' boxes under the menu,? -
I am trying to create and align three boxes with 1 box solid pin under the menu. I want them to be aligned equally because I am planning to put a picture in them. Three in each row I can make Div Box first and align it, but when I try to make another, it only overlaps for the first time and I can not get it to move in the next one. Dimensions "Height" is 340px and "width" is 260px. Because I will use this format again I will make them as a div square or div id, please explain in detail no detail so much appreciated.
All help friends appreciate. Thank you.
& lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "style.css" /> & Lt; Link rel = "stylesheet" type = "text / css" href = "videos.css" /> & Lt; Link rel = "stylesheet" type = "text / css" href = "vines.css" /> & Lt; Title & gt; Puppy Power & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "page" & gt; & Lt; Header & gt; & Lt; / Header & gt; & Lt; Div id = "dog logo" & gt; & Lt; / Div & gt; & Lt; Ul id = "navigation" & gt; & Lt; Li & gt; & Lt; A href = "indes.html" & gt; Home & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "Videos.html" & gt; Video & lt; / A & gt; & Lt; Ul class = "sub" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Venice & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Pugs & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Unsuccessful dogs & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Mad Dogs & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Funny Dogs & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Photo & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Article & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Contact & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "cell" & gt; & Lt; / Div & gt; & Lt; Div class = "cell" & gt; & Lt; / Div & gt; & Lt; Div class = "cell" & gt; & Lt; / Div & gt;
#row {width: 267px; Height: 370px; Border-top: 1px solid # 89cff0; Border bottom: 1px solid # 89cff0; Border-left: 1px solid # 89cff0; Border-right: 1px solid # 89cff0; Display: Inline-block; Vertical-align: top; Margin: 5px 0px 5px 5px; } If your question is not misunderstood, then what are you looking for:
& lt; Div class = "row" & gt; & Lt; Div class = "cell" & gt; & Lt; / Div & gt; & Lt; Div class = "cell" & gt; & Lt; / Div & gt; & Lt; Div class = "cell" & gt; & Lt; / Div & gt; & Lt; / Div & gt; .cell {width: 267px; Height: 370px; Border: 1 px solid # 89cff0; Display: Inline-block; Margin: 5px 0px 5px 5px; } Here is an example of how it will look: I hope I was helpful
Comments
Post a Comment