Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

InfoBox Text Style & Background Image


fan4chevy

Recommended Posts

Posted

Hi,

 

I am trying to figure out how to change the text style to hancock in the Category infobox as well as set a background image just for that box as well.

 

Thanks,

Charles

Posted

most of the infobox css attributes can be changed via the catalog\stylesheet.css file.

Posted
most of the infobox css attributes can be changed via the catalog\stylesheet.css file.

 

If I want to add a css style to the sheet. What would it look like in the code for that page? Can I just call out a class tag (ex. <td class="main">) from any page and it will look in the css file automatically?

Posted

yes the stylesheet is included with each script of the catalog directory. so it will pick up the css class from the file and use it.

Posted
yes the stylesheet is included with each script of the catalog directory. so it will pick up the css class from the file and use it.

 

 

Including the product description area for product_info? I have aded code in the product descriptions field and it is not staying consitent with different browsers. It looks good in Foxfire but does not in IE?

Posted
could be something else like the html generated code is incorrect. Before starting validation with different browsers its better to ensure your html code and css code are correct.

 

http://validator.w3.org/

http://jigsaw.w3.org/css-validator/

 

 

Ok! Thanks! I will try do the validation but like I said everything looks good in FoxFire. It does not a problem with the code. I copied one of the OSC pages in the validator and it can back with a lot of errors. This is OSC code not my own. I am not sure what of mine really needs to be changed??

Posted

html browsers do not explicitly report errors. they're also differences between ie,ff and how they tolerate html elements. w3c should come up green then you can start worry about the browsers.

 

Looks good from being correct is totally different.

Posted
html browsers do not explicitly report errors. they're also differences between ie,ff and how they tolerate html elements. w3c should come up green then you can start worry about the browsers.

 

Looks good from being correct is totally different.

 

OHHH! :-" Ok! I will do this first! Thanks for the help!

Posted

I have tried changing all the fonts in the stylesheet but nothing ever changed the actual text font in infoboxes. I tried to change it to Hancock.

 

 

Also how do you put in a background for just categories box?

 

Thanks,

 

Charles

Posted

would be nice to change it to any font we want but there is just few standard fonts that are supported. Verdana, Arial are the common ones. Of course everything is possible you can place Hancock or Webdings or your custom font. But you need to have php scripts in place to load and process those fonts as images.

 

Now for the categories box you would need to create a new box class instead of the standard infobox and then assign a css class to it. So the background will be part of the css entry in the stylesheet.css. I believe there are contributions for custom boxes so you could search a bit for something like this. Otherwise you could code it yourself.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...