Mittwoch, 31. Dezember 2008

What is div?

What is a Div Layer?

Div layers are similar to tables with a few more options to be spoken of. A div layer is a section on your website in which you can place any information. What it has that can be much more helpful is the ability to specify the location of the layer.

This is a Div Layer



As you will see this just creates a section to write the line above in. Since the style has no border you just see text and there's no background color difference.


The next step that can be taken in a div layer is to change the background color. That can be done using the following code.

This is a Div Layer with a red background




If you don't want background color simply take out that portion of the code. Instead a border can be used to show the edges of the layer.

This is a Div Layer




Here you will notice the border is set to 1 pixel wide and the color of the border is red. Also, notice you need to declare a border style or the border will not appear. Some choices for border style are solid, dashed, or dotted.
In the style section of div which is what we are concentrating on here you may notice that most commands are the same as in any other tag. Therefore padding will work here just as it did in the sections of the table. IF you notice in the previous example the text is right next to the border while in the example below (using padding) we are able to create a space between the text and the border.

The biggest thing to notice about div layers such as these is if you create the size too small the layer will not adjust the size. Text will simply flow out of the border.

Div layers can also have the code overflow:; placed within the style=" " and it can either have hidden or visible as the value of overflow.
Visible displays all text regardless of layer size constraints. Hidden hides it.

Div Positioning

Div positioning is where the whole div layer idea gets a little tougher. There are two types of positioning. Absolute and Relative. Before we get into examples I will do my best to explain the difference.

When using absolute positioning the basis for the distance is the sites borders. Meaning if you position absolutely and say to have it 10 pixels from the top it will be exactly 10 pixels from the top of the page.

When using relative positioning the position is not based on the entire page instead it is based on the bottom of the last thing placed on your site. If a table is written before using a div layer the position is based on the bottom of the table.

Positions can be based on top:;, bottom:;, left:;, or right:;. Try to only use left or right and top or bottom. In between : and ; place the number of pixels you would like the div layer to be from that section.

This is a div layer with positioning 10 from the top and 20 from the left.



Absolute positioning would result in positioning based on the entire page. Top:0; would move the layer to the top of the page.


This is a div layer with positioning 10 from the top and 300 from the right.

What is a Div Layer?

Div layers are similar to tables with a few more options to be spoken of. A div layer is a section on your website in which you can place any information. What it has that can be much more helpful is the ability to specify the location of the layer.

This is a Div Layer



As you will see this just creates a section to write the line above in. Since the style has no border you just see text and there's no background color difference.


The next step that can be taken in a div layer is to change the background color. That can be done using the following code.

This is a Div Layer with a red background




If you don't want background color simply take out that portion of the code. Instead a border can be used to show the edges of the layer.

This is a Div Layer




Here you will notice the border is set to 1 pixel wide and the color of the border is red. Also, notice you need to declare a border style or the border will not appear. Some choices for border style are solid, dashed, or dotted.
In the style section of div which is what we are concentrating on here you may notice that most commands are the same as in any other tag. Therefore padding will work here just as it did in the sections of the table. IF you notice in the previous example the text is right next to the border while in the example below (using padding) we are able to create a space between the text and the border.

The biggest thing to notice about div layers such as these is if you create the size too small the layer will not adjust the size. Text will simply flow out of the border.

Div layers can also have the code overflow:; placed within the style=" " and it can either have hidden or visible as the value of overflow.
Visible displays all text regardless of layer size constraints. Hidden hides it.

Div Positioning

Div positioning is where the whole div layer idea gets a little tougher. There are two types of positioning. Absolute and Relative. Before we get into examples I will do my best to explain the difference.

When using absolute positioning the basis for the distance is the sites borders. Meaning if you position absolutely and say to have it 10 pixels from the top it will be exactly 10 pixels from the top of the page.

When using relative positioning the position is not based on the entire page instead it is based on the bottom of the last thing placed on your site. If a table is written before using a div layer the position is based on the bottom of the table.

Positions can be based on top:;, bottom:;, left:;, or right:;. Try to only use left or right and top or bottom. In between : and ; place the number of pixels you would like the div layer to be from that section.

This is a div layer with positioning 10 from the top and 20 from the left.



Relative positioning would result in positioning based on the item before it. Top:0; would move the layer right below the text or whatever comes before the code.

Hopefully now you all have a better understanding of the use of div layers.
http://www.createblog.com/tutorials/tutorial.php?id=170
http://www.tizag.com/htmlT/htmldiv.php
http://www.lissaexplains.com/html7.shtml

http://www.webmasterworld.com/forum83/200.htm
http://www.faqs.org/docs/htmltut/_DIV.html
http://webdesigninfo.wordpress.com/2007/04/14/css-tutorial-div-layers-classes/

Dienstag, 30. Dezember 2008

Joomla: Virtuemart Shopping Cart

1. For proper installation, the directories (compartment) should
be set to 777, after that you can change back to 755.
2. Unzip VirtueMart_1.1.2-COMPLETE_PACKAGE.j15.zip (the sever accept files only to 2 MB you can change that in php.ini to 4 MB)
3. Upload com_virtuemart_1.1.2.j15.zip to the server
4. Install com_virtuemart_1.1.2.j15.zip (from the sever directory)
5. Now you must install the VirtueMart "Main Module". In Mambo/Joomla! 1.0 click Installers #
Components. In Joomla! 1.5 click Extensions # Install/Uninstall in the Top Menu.
Choose the file mod_virtuemart_1.1.x.zip in the File Dialog and click 'Upload File &
Install'.
6. Go to extensions, modules and activate:
mod_virtuemart_1.1.x
7. Anywhere you place the module on your site, IT MUST BE PUBLISHED. If it is not, you
can't access or browse your shop.
8. Install the following Modules
9. vmxsearch.plugin_1.1.x.j15.zip
10. vmproductsnapshots_1.1.x.j15.zip
11. Now you are ready to work with your shopping cart

http://virtuemart.net/index.php?option=com_content&task=view&id=248&Itemid=125

Montag, 29. Dezember 2008

Joomla: delete welcome front page

If you install new Joomla! 1.5 on your server, you get the 'Welcome to the Frontpage' title on your Frontpage. Sometimes, it is difficult to find, where you can change this title.

Go to your Joomla! 1.5 Administration site and login. In your administration site go to:

* Menus - Main Menu (now you are in: Menu Item Manager: mainmenu).
* Click on 'Home' link to edit this link (you are now in: Menu Item: Edit).
* Click on Parameters System and change or delete the Page title.
o If you change the Page title, changed title will be displayed on your Frontpage as a title.
o If you delete the Page title, Menu link will be displayed on your Frontpage as a title (in the present case 'Home' will be displayed as title, because 'Home' is the name of the link to the Frontpage).
o If you don't want to display any title, set Show Page Title below Page title parameter to 'No'.
* Don't forget to save changes.
http://www.phoca.cz/documents/16-joomla/167-welcome-to-the-frontpage-remove
http://www.joomlashack.com/index.php?option=com_content&task=view&id=249&Itemid=16

Joomla: Logo change

* Upload your own logo to the "/templates/ja_purity/images" folder
* In administration, go to Extensions > Template Manager
* Click on "JA_Purity", you will access the Template edit page
* Click on button "Edit CSS"
* Select "template.css" and click button "Edit"
* look for "h1.logo a" style. Change the path of the image to the image you have uploaded
* Click on Save

http://www.joomlart.com/forums/showthread.php?t=8312
http://www.youtube.com/watch?v=_jekFLV1Ko4