Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / site layout-need help

site layout-need help

Locked

Views: 2,381

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
27 Jun 2008, 11:04 PM
#1
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

site layout-need help

Need some help with my website with the background/layout. I have been going crazy with it. I loaded an image and want to put body into it with the static background. Can't seem to get to fit. All suggestions greatly appreciated!

my css looks like:
body {
background: #000;
background: url(../images/scroll.gif);
background-attachment: fixed;
float: center;
background-repeat:no-repeat;
color: transparent;
margin: 0;
height: 300px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 62.5%;
}
site is at https://www.burnerbooks.com/index.php

Thanks,
Kim
:cry:

28 Jun 2008, 1:28 AM
#2
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: site layout-need help

Remove this from #mainWrapper (line 189) -

background-color: #ffffff;

28 Jun 2008, 1:53 AM
#3
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: site layout-need help

That definately helped! :clap:

How did I get the top part of the body to move down so it fits into the image?

28 Jun 2008, 11:39 AM
#4
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: site layout-need help

sorry, but .. what?

What are you trying to do exactly (and as i'm not too clever, pictures would help!)

28 Jun 2008, 11:59 AM
#5
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: site layout-need help

If you look at the site. I finally got the image to go all way across, but can not seem to get the body to fit into the image.

My css is:
#mainWrapper {
text-align: center;
height: 300px;
width: 1000px;
margin-top: 100px;
margin-bottom: 100px;
vertical-align: top;
border: 3px solid #FFFFFF;
}

I have been trying to adjust top/bottom margins. Still have to get rid of border...I am new to php and all the coding.

https://www.burnerbooks.com/index.php
Thanks for your help. :smile:

28 Jun 2008, 2:03 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: site layout-need help

Try putting your margin:top in the body

28 Jun 2008, 5:18 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: site layout-need help

You still have white (#ffffff) background-color in several places in your header, which are covering the body background image.
#logoWrapper
#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper
#navCatTabsWrapper (a second time!)
and possibly others.

You also have a number of CSS errors that are not helping, and at the least will confuse you in trying to make changes.

body {
	background: #000;
	background: url(../images/scroll.gif);
	background-attachment: fixed;
	float: center;
	background-repeat:no-repeat;
	color: transparent;
	margin: 0;
	height: 300px;
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 62.5%;
	}
```should be```
body {
	/*background: #000; <-delete - this is negated by the second "background:" so put it there*/
	background: url(../images/scroll.gif) #000;
	background-attachment: fixed;/*this is default and generally doesn't need to be specified*/
	float: center;/* <-no such thing as float: center; - change to text-align: center; */
	background-repeat:no-repeat;
	color: transparent;/*this is font color - change it to a color, not transparent*/
	margin: 0;/*this is default and generally doesn't need to be specified*/
	height: 300px;/* <-delete - this is trying to make the whole page only 300px high!*/
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 62.5%;
	}
28 Jun 2008, 10:27 PM
#8
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: site layout-need help

:clap: Thank you so much! I made the changes you suggested.

I am still battling the logo with being transparent. I have it in the css but my image does not want to do it!

:clap: Kim

29 Jun 2008, 12:08 AM
#9
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: site layout-need help

Is your logo a gif or a jpeg?

http://cter.ed.uiuc.edu/gif-jpeg

30 Jun 2008, 1:54 AM
#10
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: site layout-need help

I started out with the logo as jpeg, but transparency did not work and white background looked really bad. I took off the Bibles and scroll to just have red and black words only. I changed to gif and set as transparency. But, that did not seem to work either. It just made the words look bad.

Kim

1 Jul 2008, 7:55 AM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: site layout-need help

How did you "set as transparency"? I see the logo/wording has a transparent background now.

1 Jul 2008, 11:05 AM
#12
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: site layout-need help

I tried it with gif. I think I may have to change it to a jpeg because words look bad.

I have been struggling with the layout of my site for a long time. Had some input from others that the scroll is too much. What do you think? Be harsh. It could make or break me. Wondering if I should just start over with the layout. I really like the burgundy and brown colors together.

Any input is greatly appreciated.
Thanks, Kim

1 Jul 2008, 5:41 PM
#13
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: site layout-need help

You can't get transparency with jpegs. If gifs don't look good enough, you might try the .png format, which is reported to be better. I understand that IE6 doesn't handle transparency in the basic png format either, though. Do some research on it if you are interested.