Hey - this might be a stupid question but its something I feel unsure about so far and I don't want to carry on doing this if my understanding is wrong etc.
So far the way I make rectangular shapes in css is to invent a <div> in the html mark-up and give it an id="" of something - then give that height / width color etc in css - then I can position that shape on screen.
Is this the right way of making shapes in css for layout without turning to external non css graphics?
I know it works I just am not sure if this is the right way to consider the function of the <div> tag
I am totally unsure what the function of this tag in a way. I know it creates divisions - say a block of of <p>'s etc but why can I use it in the same way to create graphical elements?
As you see I am a bit confused. Any suggestion. Thanks. Andy
So far the way I make rectangular shapes in css is to invent a <div> in the html mark-up and give it an id="" of something - then give that height / width color etc in css - then I can position that shape on screen.
Is this the right way of making shapes in css for layout without turning to external non css graphics?
I know it works I just am not sure if this is the right way to consider the function of the <div> tag
I am totally unsure what the function of this tag in a way. I know it creates divisions - say a block of of <p>'s etc but why can I use it in the same way to create graphical elements?
As you see I am a bit confused. Any suggestion. Thanks. Andy