Jump to content

divs


Mr-Antony
 Share

Recommended Posts

You put images next to each other on one line by placing them next to each other (not necessarily on one line) in the source code. That is

<div><img src="1.jpg" alt="1" /><img src="2.jpg" alt="2" /></div>

and you space them from each other by adding margins or paddings to them in CSS. If you haven't already read the CSS turoail, you'll have to, as there's no way to accomplish anything visually without it. At least, not "strict"-ly speaking.

Link to comment
Share on other sites

thank you very much is there any good sites i can get some more info on about divs thx
I am new to the site building business my self, but I can offer some advice:-Go with CSS and what "boen robot" said to ensure compatability with XHTML now and in the future. Tags become depricated and while they still work it is surely worth future compatability to try to comply with XHTML Strict. -As far as info on "div" goes, an in depth book on XHTML would be more useful than any free sight, this sight "W3Schools" is about as good as they come.
Link to comment
Share on other sites

That non-breaking space does work, but adding margins or padding will work better. You wiil have more control and it can be changed simply be editting the css file. Perhaps adding a 'class' for those images would be better still...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...