Come here for all of your Graphic-Web Design needs! Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!

Go Back   LayeredGFX Forums > Graphics Tutorials > Web Design Tutorials
Register
Register Search Today's Posts Mark Forums Read

Text Link Ads

XHTML, CSS3 Valid Gallery - Very Detailed Part 2


Web Design Tutorials


Come here for all of your Graphic-Web Design needs!
This is a discussion on XHTML, CSS3 Valid Gallery - Very Detailed Part 2 within the Web Design Tutorials, part of the Graphics Tutorials category; I admit, I kinda forgot I was posting these here, sorry for the long wait for part 2. So let's carry on with this ...

 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-16-2007, 07:31 PM
Onlooker
 
XHTML, CSS3 Valid Gallery - Very Detailed Part 2

I admit, I kinda forgot I was posting these here, sorry for the long wait for part 2.

So let's carry on with this gallery shall we. If you remember in the first part, we had a left side and a right side. We'll get the left side done right now. Below is the CSS.

Code:
#main{
width: 100%;
margin-top: 5px;
}

#left{
display: inline;
float: left;
width: 340px;
}
And since we're using this bit for a large preview, let's add some dummy text to it, so onto the HTML page.

Code:
<div id="left">

            <img src="double.jpg" alt="Double Vision" /><br /><br />

            This is just some dummy text so that we have some kind of insight on our XHTML and CSS gallery layout creation.

        </div>
The image tag, part of the difference between HTML and XHTML. XHTML requires you to include the alt attribute, and also the trailing slash ( / ) at the end. But wait a minute, we're using line breaks? Oh no the won't do at all, we'll sort this one out later.

Now if you view what we have so far, you'll notice that our image and dummy text has gone over the background of the container. This is where the clear div comes in, which you'll very soon find out (Except for IE 7)

Now time for the right side.

Time for the right side of our main area. Here we will be showing all the thumbnails for the images, exciting huh?

Code:
#right{

display: inline;

float: right;

width: 340px;

}
Yea another very simple one. And just some dummy images for the thumbnails.

Code:
<div id="right">

            <img src="mysterythumb.jpg" alt="Mystery" />

            <img src="secretthumb.jpg" alt="Secret" />

            <img src="unknownthumb.jpg" alt="Unknown" />

            <img src="whisperth.jpg" alt="Whisper" />

        </div>
My thumbnails are 150x50. But doesn't mean you have to keep to the same size, because our space, it's more sensible to have something like 70x70.

Check the page in a browser again. Now before we finish this section, let's get the container background fixed so it covers everything. We use the clear div to do this.

Code:
#clear{

clear: both;

}
Ok, it's great, it's working in IE and Firefox. I don't have any other browsers so I'm not too sure on the others like Opera.

Ok we got one more section left for the basic structure, copyright. This is simple. Enter in your copyright text.

Code:
<div id="copyright">This design is created by David Ambler for the XHTML and CSS Gallery layout.</div>
and the css.

Code:
#copyright{

width: 300px;

margin: 5px auto;

font-size: 9px;

border-top: 1px dashed #8D8D8D;

text-align: center;

}
Very Simple, been all through it before.

I'll end this now, there will only be 2 more parts to this. The 3rd part will be adding a few more details, and 4th part will be the javascript.

P.S. Is this helpful? A thanks would be appreciatted, you wouldn't believe how long it took to write this whole tutorial. I wrote it on pixel2life.com on their publishing tool and it has 10 pages.
  #2 (permalink)  
Old 05-17-2007, 11:16 AM
Jesus is my hero
 
Re: XHTML, CSS3 Valid Gallery - Very Detailed Part 2

Thanks very much for these tutorials man.. They will really help out!!
  #3 (permalink)  
Old 05-19-2007, 08:54 PM
Onlooker
 
Re: XHTML, CSS3 Valid Gallery - Very Detailed Part 2

You're welcome. Also, is it ok to post like, PHP and MySQL tutorials here too? They kind of integrate with web design.
  #4 (permalink)  
Old 05-19-2007, 09:02 PM
CYLON!
Photobucket
 
Re: XHTML, CSS3 Valid Gallery - Very Detailed Part 2

yes, u can post ANY webdesign tutorials u can name. the more the merrier
  #5 (permalink)  
Old 05-21-2007, 03:44 PM
ICanHasLayeredGFX?
 
Re: XHTML, CSS3 Valid Gallery - Very Detailed Part 2

What was that?? All the code stuff?
  #6 (permalink)  
Old 05-21-2007, 07:29 PM
Jesus is my hero
 
Re: XHTML, CSS3 Valid Gallery - Very Detailed Part 2

Please be more specific Aro. What were the what?
  #7 (permalink)  
Old 05-22-2007, 11:39 AM
ICanHasLayeredGFX?
 
Re: XHTML, CSS3 Valid Gallery - Very Detailed Part 2

Like..Urgh..What was everything?What was it all for? The stuff in the code box..Everything!lmfao...I'm nooby lol
  #8 (permalink)  
Old 05-22-2007, 01:17 PM
Jesus is my hero
 
Re: XHTML, CSS3 Valid Gallery - Very Detailed Part 2

Those are codes. They tell where everything is placed, what it will look like, if it's upside down or backwards...

Those pretty much make the site.
  #9 (permalink)  
Old 05-22-2007, 10:58 PM
ICanHasLayeredGFX?
 
Re: XHTML, CSS3 Valid Gallery - Very Detailed Part 2

OHHH so this is like the template type of thing?
  #10 (permalink)  
Old 05-22-2007, 11:04 PM
Jesus is my hero
 
Re: XHTML, CSS3 Valid Gallery - Very Detailed Part 2

Yes, but in coding and not in images.


Thread Tools
Display Modes




All times are GMT. The time now is 12:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
Template-Modifikationen durch TMS
vBCredits v1.3 ©2007 by Darkwaltz4