PDA

View Full Version : sqaure box.


gavin
Jan-25-2007, 04:01 PM
ALright since i do not have the time right now to work on the rounded boxes. How can i simply add a grey box..... # c1c2c3 to all my pages. I want the Width to be a set size, same as my starting page wide for my slide show, and then the length to vary depending on the page?

is this any easier to do?

Mike Lane
Jan-25-2007, 11:16 PM
ALright since i do not have the time right now to work on the rounded boxes. How can i simply add a grey box..... # c1c2c3 to all my pages. I want the Width to be a set size, same as my starting page wide for my slide show, and then the length to vary depending on the page?

is this any easier to do?It's easy and it's a good starting point for rounded boses. Put this in your header before everything else:

HEADER:
<div id="mySiteWrapper">

And put this in your footer after everything else:
</div>

Then put this in your CSS:

#mySiteWrapper {
background:#c1c2c3;
width:750px;
margin:0 auto;
}

.Large #mySiteWrapper,
.Original #mySiteWrapper {
width:800px;
}

.smugmug #mySiteWrapper,
.critique #mySiteWrapper {
width:960px;
}


That's a good start. You may want to adjust the padding a bit.

gavin
Jan-26-2007, 11:48 PM
That you kindly Sir!

gavin
Jan-27-2007, 02:28 PM
It doesn;t work though? i must have done somthing wrong i entered it just as you described!

Mike Lane
Jan-28-2007, 12:25 AM
CSS is very specific about how you do comments. In your case your improper CSS comments - // SQAURE BOX // - are ruining the whole thing. So change it to this:

/* SQAURE BOX */

And you'll be set.

gavin
Jan-28-2007, 09:39 AM
CSS is very specific about how you do comments. In your case your improper CSS comments - // SQAURE BOX // - are ruining the whole thing. So change it to this:

/* SQAURE BOX */

And you'll be set.

That works great, just one little thing, i dont; want the grey box appearing on my home page.

Mike Lane
Jan-28-2007, 09:57 AM
That works great, just one little thing, i dont; want the grey box appearing on my home page.no problem. Just add this:

.homepage #mySiteWrapper {
background:transparent;
}

gavin
Jan-28-2007, 04:57 PM
no problem. Just add this:

.homepage #mySiteWrapper {
background:transparent;
}
Thank you very much!!

gavin
Jan-28-2007, 09:09 PM
Again thank you very much i am very pleased, I almmost like this look better than the rounded corners, looks sharper.

How am i able to change thte width of the box on my galleries page? I would like it to be 980 pixels like the rest.

Not sure how to do this though.

Thanks!!

http://www.gjohnstone.com/galleries

Mike Lane
Jan-28-2007, 09:33 PM
It already is :deal But inside of it is a div with id #homepage and that is only 750px wide. Simply add the following to your css:

.galleries #mySiteWrapper {
background:#c1c2c3;
}

.galleries #homepage {
width:980px;
}

.galleries .box {
background:transparent;
}

Allen
Jan-28-2007, 09:39 PM
Again thank you very much i am very pleased, I almmost like this look better than the rounded corners, looks sharper.

How am i able to change thte width of the box on my galleries page? I would like it to be 980 pixels like the rest.

Not sure how to do this though.

Thanks!!

http://www.gjohnstone.com/galleries Try this, don't know if it's the correct way to do it, but it works.

.galleries .boxBottom {
background:#c1c2c3;
width:980px;
margin-left: -120px;
}

Edit: Guess it's not, Mike to the rescue.

gavin
Jan-28-2007, 09:59 PM
Thanks guys!!! really appreciate it!!!