Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Div's, CSS, formatting - help please
Old 05-09-2008, 04:20 PM Div's, CSS, formatting - help please
Extreme Talker

Posts: 177
Trades: 0
So I look at all these websites and they use the div tags everywhere, and I want to take it for a test ride. I've never been too good with css and have followed multiple tutorials, but css seems to hate me. I even download source files for what the css is supposed to do (formatting wise) and when I load it, it's nothing similar.

But heres the point. I'm making a website for my mom for her birthday, and a big part of it will be pictures. She has so many pictures I'm wondering if I"ll be able to scan them all before her birthday. I wanna try and setup something like facebook with albums and such, and I was hoping I could get some insight on formatting the page while looking at the 'thumbnails' of the pictures.

So when you're looking at an album, it shows you smaller versions of the pictures you could blow up (to see the large version) and it normally does 5 rows of 4, a total of 20 pictures per page.

How could I use div's + CSS so that the pictures are evenly spread out in the one frame?
kbfirebreather is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-09-2008, 05:50 PM Re: Div's, CSS, formatting - help please
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
css:

Code:
.images img {
  border:0;
  margin: 0 30px;
}
Html:

Code:
<div class="images">
<img src="1.jpg" alt="Image 1" width="50" height="50" />
<img src="2.jpg" alt="Image 2" width="50" height="50" />
<img src="3.jpg" alt="Image 3" width="50" height="50" />
<img src="4.jpg" alt="Image 4" width="50" height="50" />
</div>
Something like that should do it
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 07:09 PM Re: Div's, CSS, formatting - help please
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
I even download source files for what the css is supposed to do (formatting wise) and when I load it, it's nothing similar.
Unless your html file is set up with the proper doctype -which you MUST have - then you WILL get funny results, especially with IE.

Look in the forum stickies, there a whole thread devoted to photo galleries.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-10-2008, 12:39 PM Re: Div's, CSS, formatting - help please
Extreme Talker

Posts: 177
Trades: 0
Thank you very much guys, I've been playing around with it and have been improving my css skills. I'm sure I'll be back though :-P
kbfirebreather is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Div's, CSS, formatting - help please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19949 seconds with 12 queries