Forums / Templates, Stylesheets, Page Layout / Website from scratch

Website from scratch

Locked

Started by jazperson on 17 Dec 2006, 2:44 AM · Views: 2,550

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
17 Dec 2006, 2:44 AM
#1
jazperson avatar

jazperson

New Zenner

Join Date:
Dec 2006
Posts:
35
Plugin Contributions:
0

Website from scratch

Hi, is it possible to make a site like this using zen cart?

http://www.phweb.biz/proofs/jewelrybyvictoria/template

As you can see, my borders on the left and right have shadings and they are images background. Is it possible to add some <div> to it? Another question is that how do I align the site to the middle, I just started studying the cart software.. here is the link:

http://www.wordfortheworldlp.org/zencart

Thank you and hope to get replies from you guys.

17 Dec 2006, 3:33 AM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,737
Plugin Contributions:
0

Re: Website from scratch

Yes, look at https://www.zen-cart.com :)

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

17 Dec 2006, 3:38 AM
#4
jazperson avatar

jazperson

New Zenner

Join Date:
Dec 2006
Posts:
35
Plugin Contributions:
0

Re: Website from scratch

Yeah https://www.zen-cart.com has image border shadows but it's layout is set to table. Anyone know how to do it in CSS zen cart?

17 Dec 2006, 3:57 AM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,737
Plugin Contributions:
0

Re: Website from scratch

Fixed width or fluid?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

17 Dec 2006, 4:38 AM
#6
jazperson avatar

jazperson

New Zenner

Join Date:
Dec 2006
Posts:
35
Plugin Contributions:
0

Re: Website from scratch

Yes fixed width, I made the image border shadows in tables, I just don't know how to apply it in CSS and zen cart.

17 Dec 2006, 10:16 AM
#7
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Website from scratch

Take a look at my Test Site to see an implementation of what I believe you are trying to achieve.

This uses NO tables and is styled entirely with CSS.

requires adding an additional "wrapper" div.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 Dec 2006, 3:33 PM
#8
jazperson avatar

jazperson

New Zenner

Join Date:
Dec 2006
Posts:
35
Plugin Contributions:
0

Re: Website from scratch

I got your idea, so I will make another wrapper div for the shadow. I think I need to study more about using CSS without tables for websites. Thank you!

17 Dec 2006, 4:14 PM
#9
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Website from scratch

You said you already had your shadow image.

in your stylesheet create a new declaration:

#shadow {
margin: 0 70px; /* this is based on a page width of 850px so you'll have to adjust the 70px to fit your site */
background: url(../images/your_image.???);
}

Save the file and upload to your server.

Now in includes/templates/template_default/common/tpl_main_page.php

Find:

<div id="mainWrapper">

add the following:

<div id="shadow">
``` just above  so you'll now have the following:

<div id="shadow"> <div id="mainWrapper"> ```

Now find:

require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
</div>
<!--bof- parse time display -->

Add the closing </div> just above <!--bof- parse time display --> so you'll now have the following:

require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
</div>
</div>
<!--bof- parse time display -->

Save the edited file to:
includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php and upload to your server.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 Dec 2006, 4:26 PM
#10
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Website from scratch

NB: to my above post - The instructions assume using only one image for the shadow.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 Dec 2006, 9:56 PM
#11
jazperson avatar

jazperson

New Zenner

Join Date:
Dec 2006
Posts:
35
Plugin Contributions:
0

Re: Website from scratch

Thank you for the info clydejones.

18 Dec 2006, 1:55 AM
#12
jazperson avatar

jazperson

New Zenner

Join Date:
Dec 2006
Posts:
35
Plugin Contributions:
0

Re: Website from scratch

Ok i got the shadow border working. But there is 1 problem, the alignment of the whole body became left. I tried adding text-align: center to the css of #shadow and #mainWrapper but it's still the same. Here is the link:

http://www.wordfortheworldlp.org/zencart

Another question what if I make another border shadow on the footer area, is it still possible?

18 Dec 2006, 2:53 AM
#13
jazperson avatar

jazperson

New Zenner

Join Date:
Dec 2006
Posts:
35
Plugin Contributions:
0

Re: Website from scratch

Ok i got it fixed but it's really weird. #shadow should be added to some group of #s like:

#navColumnOneWrapper, #navColumnTwoWrapper, #mainWrapper, #shadow{
margin: auto;
}

18 Dec 2006, 2:56 AM
#14
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Website from scratch

You left of the right and left margins. right now you have the margins set to 0.
add what is highlighted in the shadow declaration. You can adjust this as needed.

#shadow {
    width: 860px;
	margin: 0 70px;
    background: url(../images/bg_.gif);
    text-align: center;
    }

Another question what if I make another border shadow on the footer area, is it still possible?

Do you mean stopping the "main Shadow" above the bottom navigation bar and then adding a "footer Shadow"? Yes, this is possible. You'd just have to adjust where the "main shadow <div> closes and the "footer shadow <div> opens.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

18 Dec 2006, 4:27 AM
#15
jazperson avatar

jazperson

New Zenner

Join Date:
Dec 2006
Posts:
35
Plugin Contributions:
0

Re: Website from scratch

Do you mean stopping the "main Shadow" above the bottom navigation bar and then adding a "footer Shadow"? Yes, this is possible. You'd just have to adjust where the "main shadow <div> closes and the "footer shadow <div> opens.

Yes I got your point on that div closing. Thanks.