X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Convert to CSS - one piece at a time (https://forum.x-cart.com/showthread.php?t=35882)

WhiteDoveGifts 05-29-2008 06:10 AM

Re: Convert to CSS - one piece at a time
 
Currently I am finishing my site redesign with version 4.1.10 and I do want to make these CSS changes but get stuck...

When looking at the 4.1.10 skin1 CSS file there is no .DialogTitle and .DialogBox but I what I can locate is:

TD.DialogTitle, TD.DialogTitle .Lbl {
COLOR: #000;
FONT-WEIGHT: bold;
FONT-SIZE: 15px;
/* BACKGROUND-IMAGE: url(images/dialog_bg_n.gif);
BACKGROUND-COLOR: #44AADA;*/
VERTICAL-ALIGN: bottom;
TEXT-ALIGN: left;
}

and these two:

TABLE.DialogBox {
WIDTH: 100%;
HEIGHT: 100%;
VERTICAL-ALIGN: top;
}
TD.DialogBox {

TEXT-ALIGN: left;
/*PADDING: 10px;*/
}

So which ones am I supposed to change?

Another question related to this topic: Now I have H1 tags by surrounding the title in dialog.tpl.

How can I implement the H1 tags when the original contents are beeing replaced by the div classes?

Thanks in advance for some help with this..!

balinor 05-29-2008 06:21 AM

Re: Convert to CSS - one piece at a time
 
They don't exist by default, you need to create them per my post above :)

Not sure I follow you with the h1 tags?

WhiteDoveGifts 05-29-2008 06:46 AM

Re: Convert to CSS - one piece at a time
 
Quote:

Originally Posted by balinor
They don't exist by default, you need to create them per my post above :)



Ah... So I will create them then :wink:


About the H1 Tags: In my live site I am using dialog.tpl with an H1 tag and dialog_no_h1.tpl for the parts where I don't want an H1 tag. When I would follow your post, the contents of the original dialog.tpl would be replaced by the div classes, right? So how do I add the H1 tags to show on the product title?

balinor 05-29-2008 06:51 AM

Re: Convert to CSS - one piece at a time
 
Just put the <h1> tags between the div tags:

<div class="DialogTitle"><h1 class="whateveryourclassis">{$title}</h1></div>

WhiteDoveGifts 05-29-2008 06:57 AM

Re: Convert to CSS - one piece at a time
 
Many thanks for your (as always) quick reply!

happyscott 05-30-2008 09:04 AM

Re: Convert to CSS - one piece at a time
 
did this on mine and worked very well.

Can we have some more please? :-)

WhiteDoveGifts 05-30-2008 01:10 PM

Re: Convert to CSS - one piece at a time
 
Oh Yes! More CSS please.... :P A step by step manual "convert to CSS" as sticky would be an ultimate superthread :lol:

happyscott 06-10-2008 08:52 AM

Re: Convert to CSS - one piece at a time
 
anyone got any more ideas on this one?

balinor 06-10-2008 10:08 AM

Re: Convert to CSS - one piece at a time
 
I'll post some more when I have some free time..

Cyber Matrix 06-12-2008 06:03 AM

Re: Convert to CSS - one piece at a time
 
Great information and I was able to make my head.tpl and other tpls related to the head.tpl all css. Then I ran into a problem. The body wanted to stay in the header and I could not get the body of the content below the header.

Do you mind sharing how to get the body below the header?


All times are GMT -8. The time now is 12:29 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.