Хочется разместить по центру таблицу свойствами CSS. Логично было бы написать в CSS text-align: center, но хренушки.
Выход вот:
table.center {margin-left:auto; margin-right:auto;}
ну и <table class="center">
Хочется разместить по центру таблицу свойствами CSS. Логично было бы написать в CSS text-align: center, но хренушки.
Выход вот:
table.center {margin-left:auto; margin-right:auto;}
ну и <table class="center">
RSS feed for comments on this post. TrackBack URL
Да, интересное решение. Спасибо)
Комментарий by PavelDart — 17.06.2010 @ 22:09
Харош!) Спасибо
Комментарий by Ванюшка — 14.11.2010 @ 15:49
5 баллов ) Спасибо огромное
Комментарий by Павел — 14.02.2011 @ 12:52
table.center {margin: auto;}
так тоже вроде работает
Комментарий by Droopy — 04.03.2011 @ 22:24
Своего ума не хватило, чтобы применить ваше решение.
Помогите с конкретным примером. Что именно нужно изменить в тексте моего template.css чтобы таблицы центрировались. В HTML редакторе таблица центрирована.
Текст template.css:
/* begin Page */
/* Generated with Artisteer version 2.6.0.36391, file checksum is 727A357D. */
body, p
{
margin: 0.5em 0;
font-family: Arial, Helvetica, Sans-Serif;
font-size: 14px;
text-align: justify;
}
body
{
margin: 0 auto;
padding: 0;
color: #000000;
background-color: #FFFFFF;
background-image: url(‘../images/page_t.jpg’);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: top center;
}
h1, h2, h3, h4, h5, h6,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover
h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited,
.art-postheader, .art-postheader a, .art-postheader a:link, .art-postheader a:visited, .art-postheader a:hover,
.art-blockheader .t, .art-vmenublockheader .t, .art-logo-text, .art-logo-text a,
h1.art-logo-name, h1.art-logo-name a, h1.art-logo-name a:link, h1.art-logo-name a:visited, h1.art-logo-name a:hover
{
text-decoration: none;
font-family: Arial, Helvetica, Sans-Serif;
font-style: normal;
font-weight: bold;
font-size: 30px;
text-align: left;
}
a,
.art-post li a
{
font-style: normal;
font-weight: bold;
text-decoration: none;
color: #00D664;
}
a:link,
.art-post li a:link
{
font-style: normal;
font-weight: bold;
text-decoration: none;
color: #00D664;
}
a:visited, a.visited,
.art-post li a:visited, .art-post li a.visited
{
color: #363636;
}
a:hover, a.hover,
.art-post li a:hover, .art-post li a.hover
{
text-decoration: underline;
color: #6B6B6B;
}
h1, h1 a, h1 a:link, h1 a:visited, h1 a:hover
{
margin: 0.67em 0;
color: #525252;
}
h2, h2 a, h2 a:link, h2 a:visited, h2 a:hover
{
margin: 0.8em 0;
font-size: 28px;
color: #6B6B6B;
}
h3, h3 a, h3 a:link, h3 a:visited, h3 a:hover
{
margin: 1em 0;
font-size: 24px;
color: #6B6B6B;
}
h4, h4 a, h4 a:link, h4 a:visited, h4 a:hover
{
margin: 1.25em 0;
font-size: 22px;
color: #5E5E5E;
}
h5, h5 a, h5 a:link, h5 a:visited, h5 a:hover
{
margin: 1.67em 0;
font-size: 18px;
color: #5E5E5E;
}
h6, h6 a, h6 a:link, h6 a:visited, h6 a:hover
{
margin: 2.33em 0;
font-size: 16px;
color: #5E5E5E;
}
h1 a, h1 a:link, h1 a:visited, h1 a:hover,
h2 a, h2 a:link, h2 a:visited, h2 a:hover,
h3 a, h3 a:link, h3 a:visited, h3 a:hover,
h4 a, h4 a:link, h4 a:visited, h4 a:hover,
h5 a, h5 a:link, h5 a:visited, h5 a:hover,
h6 a, h6 a:link, h6 a:visited, h6 a:hover
{
margin:0;
}
#art-main
{
position: relative;
width: 100%;
left: 0;
top: 0;
cursor:default;
}
#art-page-background-gradient
{
background-position: top center;
}
.cleared
{
float: none;
clear: both;
margin: 0;
padding: 0;
border: none;
font-size: 1px;
}
form
{
padding: 0 !important;
margin: 0 !important;
}
table.position
{
position: relative;
width: 100%;
table-layout: fixed;
}
/* end Page */
/* begin Box, Sheet */
.art-sheet
{
position: relative;
z-index: 0;
margin: 0 auto;
width: 1002px;
min-width: 3px;
min-height: 3px;
}
.art-sheet-body
{
position: relative;
z-index: 1;
padding: 1px;
}
.art-sheet-tr, .art-sheet-tl, .art-sheet-br, .art-sheet-bl, .art-sheet-tc, .art-sheet-bc,.art-sheet-cr, .art-sheet-cl
{
position: absolute;
z-index: -1;
}
.art-sheet-tr, .art-sheet-tl, .art-sheet-br, .art-sheet-bl
{
width: 2px;
height: 2px;
background-image: url(‘../images/sheet_s.png’);
}
.art-sheet-tl
{
top: 0;
left: 0;
clip: rect(auto, 1px, 1px, auto);
}
.art-sheet-tr
{
top: 0;
right: 0;
clip: rect(auto, auto, 1px, 1px);
}
.art-sheet-bl
{
bottom: 0;
left: 0;
clip: rect(1px, 1px, auto, auto);
}
.art-sheet-br
{
bottom: 0;
right: 0;
clip: rect(1px, auto, auto, 1px);
}
.art-sheet-tc, .art-sheet-bc
{
left: 1px;
right: 1px;
height: 2px;
background-image: url(‘../images/sheet_h.png’);
}
.art-sheet-tc
{
top: 0;
clip: rect(auto, auto, 1px, auto);
}
.art-sheet-bc
{
bottom: 0;
clip: rect(1px, auto, auto, auto);
}
.art-sheet-cr, .art-sheet-cl
{
top: 1px;
bottom: 1px;
width: 2px;
background-image: url(‘../images/sheet_v.png’);
}
.art-sheet-cr
{
right: 0;
clip: rect(auto, auto, auto, 1px);
}
.art-sheet-cl
{
left: 0;
clip: rect(auto, 1px, auto, auto);
}
.art-sheet-cc
{
position: absolute;
z-index: -1;
top: 1px;
left: 1px;
right: 1px;
bottom: 1px;
background-color: #D1FFE7;
}
.art-sheet
{
margin-top: 10px !important;
cursor:auto;
}
#art-page-background-simple-gradient, #art-page-background-gradient, #art-page-background-glare
{
min-width: 1002px;
}
/* end Box, Sheet */
/* begin Header */
div.art-header
{
margin: 0 auto;
position: relative;
z-index: 0;
width: 1000px;
height: 332px;
overflow: hidden;
}
div.art-header-png
{
position: absolute;
z-index: -2;
top: 0;
left: 0;
width: 1000px;
height: 332px;
background-image: url(‘../images/header.png’);
background-repeat: no-repeat;
background-position: left top;
}
/* end Header */
/* begin Layout */
.art-content-layout
{
display: table;
padding: 0;
border: none;
width: 1000px;
}
.art-content-layout .art-content-layout
{
width: auto;
margin:0;
}
div.art-content-layout div.art-layout-cell, div.art-content-layout div.art-layout-cell div.art-content-layout div.art-layout-cell
{
display: table-cell;
}
div.art-layout-cell div.art-layout-cell
{
display: block;
}
div.art-content-layout-row
{
display: table-row;
}
.art-content-layout
{
table-layout: fixed;
border-collapse: collapse;
background-color: Transparent;
border: none !important;
padding:0 !important;
}
.art-layout-cell, .art-content-layout-row
{
background-color: Transparent;
vertical-align: top;
text-align: left;
border: none !important;
margin:0 !important;
padding:0 !important;
}
/* end Layout */
/* begin Box, Block, VMenuBlock */
.art-vmenublock
{
position: relative;
z-index: 0;
margin: 0 auto;
min-width: 1px;
min-height: 1px;
}
.art-vmenublock-body
{
position: relative;
z-index: 1;
padding: 0;
}
.art-vmenublock
{
margin: 7px;
}
/* end Box, Block, VMenuBlock */
/* begin Box, Box, VMenuBlockContent */
.art-vmenublockcontent
{
position: relative;
z-index: 0;
margin: 0 auto;
min-width: 1px;
min-height: 1px;
}
.art-vmenublockcontent-body
{
position: relative;
z-index: 1;
padding: 0;
}
.art-vmenublockcontent
{
position: relative;
z-index: 0;
margin: 0 auto;
min-width: 1px;
min-height: 1px;
}
.art-vmenublockcontent-body
{
position: relative;
z-index: 1;
padding: 0;
}
/* end Box, Box, VMenuBlockContent */
/* begin VMenu */
ul.art-vmenu, ul.art-vmenu li
{
list-style: none;
margin: 0;
padding: 0;
width: auto;
line-height: 0;
}
/* collapsible separators */
.art-vmenu .collapsed
{
display: none;
}
/* images in menu items */
ul.art-vmenu img.art-menu-image, ul.art-vmenu img.art-menu-image-left
{
vertical-align: middle;
margin-right: 5px;
}
ul.art-vmenu img.art-menu-image-right
{
vertical-align: middle;
margin-left: 5px;
}
/* end VMenu */
/* begin VMenuItem */
ul.art-vmenu a
{
position: relative;
display: block;
overflow: hidden;
height: 26px;
cursor: pointer;
text-decoration: none;
}
ul.art-vmenu li.art-vmenu-separator
{
display: block;
padding: 0 0 0 0;
margin: 0;
font-size: 1px;
}
ul.art-vmenu .art-vmenu-separator-span
{
display: block;
padding: 0;
font-size: 1px;
height: 0;
line-height: 0;
border: none;
}
ul.art-vmenu a .r, ul.art-vmenu a .l
{
position: absolute;
display: block;
top: 0;
z-index: -1;
height: 78px;
background-image: url(‘../images/vmenuitem.png’);
}
ul.art-vmenu a .l
{
left: 0;
right: 1px;
}
ul.art-vmenu a .r
{
width: 1004px;
right: 0;
clip: rect(auto, auto, auto, 1003px);
}
ul.art-vmenu a .t
{
display: block;
line-height: 26px;
color: #000000;
padding: 0 14px 0 14px;
font-size: 13px;
margin-left:0;
margin-right:0;
}
ul.art-vmenu a.active .l, ul.art-vmenu a.active .r
{
top: -52px;
}
ul.art-vmenu a.active .t
{
color: #000000;
}
ul.art-vmenu a:hover .l, ul.art-vmenu a:hover .r
{
top: -26px;
}
ul.art-vmenu a:hover .t
{
color: #000000;
}
/* end VMenuItem */
/* begin VMenuSubItem */
ul.art-vmenu ul, ul.art-vmenu ul li
{
margin: 0;
padding: 0;
}
ul.art-vmenu ul a
{
display: block;
white-space: nowrap;
height: 26px;
overflow: visible;
background-image: url(‘../images/vsubitem.gif’);
background-position: 23px 0;
background-repeat: repeat-x;
padding-left: 31px;
border: solid 1px #00803C;
}
ul.art-vmenu ul span, ul.art-vmenu ul span span
{
display: inline;
float: none;
margin: inherit;
padding: inherit;
background-image: none;
text-align: inherit;
text-decoration: inherit;
}
ul.art-vmenu ul a, ul.art-vmenu ul a:link, ul.art-vmenu ul a:visited, ul.art-vmenu ul a:hover, ul.art-vmenu ul a:active, ul.art-vmenu ul span, ul.art-vmenu ul span span
{
line-height: 26px;
color: #000000;
font-size: 10px;
margin-left: 0;
}
ul.art-vmenu ul
{
margin:0 0 0 0;
}
ul.art-vmenu ul ul
{
margin:0 0 0 0;
}
ul.art-vmenu ul li.art-vsubmenu-separator
{
display: block;
margin: 0;
font-size: 1px;
padding: 0 0 0 0;
}
ul.art-vmenu ul .art-vsubmenu-separator-span
{
display: block;
padding: 0;
font-size: 1px;
height: 0;
line-height: 0;
margin: 0;
border: none;
}
ul.art-vmenu ul li li a
{
background-position: 46px 0;
padding-left: 54px;
}
ul.art-vmenu ul li li li a
{
background-position: 69px 0;
padding-left: 77px;
}
ul.art-vmenu ul li li li li a
{
background-position: 92px 0;
padding-left: 100px;
}
ul.art-vmenu ul li li li li li a
{
background-position: 115px 0;
padding-left: 123px;
}
ul.art-vmenu ul li a.active
{
color: #000000;
background-position: 23px -52px;
}
ul.art-vmenu ul li li a.active
{
background-position: 46px -52px;
}
ul.art-vmenu ul li li li a.active
{
background-position: 69px -52px;
}
ul.art-vmenu ul li li li li a.active
{
background-position: 92px -52px;
}
ul.art-vmenu ul li li li li li a.active
{
background-position: 115px -52px;
}
ul.art-vmenu ul li a:hover, ul.art-vmenu ul li a:hover.active
{
color: #000000;
background-position: 23px -26px;
border: solid 1px #A6A6A6;
}
ul.art-vmenu ul li li a:hover, ul.art-vmenu ul li li a:hover.active
{
background-position: 46px -26px;
}
ul.art-vmenu ul li li li a:hover, ul.art-vmenu ul li li li a:hover.active
{
background-position: 69px -26px;
}
ul.art-vmenu ul li li li li a:hover, ul.art-vmenu ul li li li li a:hover.active
{
background-position: 92px -26px;
}
ul.art-vmenu ul li li li li li a:hover, ul.art-vmenu ul li li li li li a:hover.active
{
background-position: 115px -26px;
}
/* end VMenuSubItem */
/* begin Box, Block */
.art-block
{
position: relative;
z-index: 0;
margin: 0 auto;
min-width: 3px;
min-height: 3px;
}
.art-block-body
{
position: relative;
z-index: 1;
padding: 8px;
}
.art-block-tr, .art-block-tl, .art-block-br, .art-block-bl, .art-block-tc, .art-block-bc,.art-block-cr, .art-block-cl
{
position: absolute;
z-index: -1;
}
.art-block-tr, .art-block-tl, .art-block-br, .art-block-bl
{
width: 2px;
height: 2px;
background-image: url(‘../images/block_s.png’);
}
.art-block-tl
{
top: 0;
left: 0;
clip: rect(auto, 1px, 1px, auto);
}
.art-block-tr
{
top: 0;
right: 0;
clip: rect(auto, auto, 1px, 1px);
}
.art-block-bl
{
bottom: 0;
left: 0;
clip: rect(1px, 1px, auto, auto);
}
.art-block-br
{
bottom: 0;
right: 0;
clip: rect(1px, auto, auto, 1px);
}
.art-block-tc, .art-block-bc
{
left: 1px;
right: 1px;
height: 2px;
background-image: url(‘../images/block_h.png’);
}
.art-block-tc
{
top: 0;
clip: rect(auto, auto, 1px, auto);
}
.art-block-bc
{
bottom: 0;
clip: rect(1px, auto, auto, auto);
}
.art-block-cr, .art-block-cl
{
top: 1px;
bottom: 1px;
width: 2px;
background-image: url(‘../images/block_v.png’);
}
.art-block-cr
{
right: 0;
clip: rect(auto, auto, auto, 1px);
}
.art-block-cl
{
left: 0;
clip: rect(auto, 1px, auto, auto);
}
.art-block-cc
{
position: absolute;
z-index: -1;
top: 1px;
left: 1px;
right: 1px;
bottom: 1px;
background-color: #DBFFEC;
}
.art-block
{
margin: 7px;
}
/* end Box, Block */
/* begin Box, BlockContent */
.art-blockcontent
{
position: relative;
z-index: 0;
margin: 0 auto;
min-width: 1px;
min-height: 1px;
}
.art-blockcontent-body
{
position: relative;
z-index: 1;
padding: 0;
}
.art-blockcontent-body,
.art-blockcontent-body a,
.art-blockcontent-body li a
{
color: #4A4A4A;
}
.art-blockcontent-body a,
.art-blockcontent-body li a
{
color: #00A34C;
font-style: normal;
font-weight: bold;
text-decoration: none;
}
.art-blockcontent-body a:link,
.art-blockcontent-body li a:link
{
color: #00A34C;
font-style: normal;
font-weight: bold;
text-decoration: none;
}
.art-blockcontent-body a:visited, .art-blockcontent-body a.visited,
.art-blockcontent-body li a:visited, .art-blockcontent-body li a.visited
{
color: #00D664;
}
.art-blockcontent-body a:hover, .art-blockcontent-body a.hover,
.art-blockcontent-body li a:hover, .art-blockcontent-body li a.hover
{
color: #000000;
text-decoration: underline;
}
.art-blockcontent-body ul
{
list-style-type: none;
color: #242424;
margin: 0;
padding: 0;
}
.art-blockcontent-body ul li
{
line-height: 1.25em;
padding: 0 0 0 13px;
background-image: url(‘../images/blockcontentbullets.png’);
background-repeat: no-repeat;
}
/* end Box, BlockContent */
/* begin Button */
.art-button-wrapper .art-button
{
font-family: Arial, Helvetica, Sans-Serif;
font-style: normal;
font-weight: bold;
font-size: 14px;
display: inline-block;
vertical-align: middle;
white-space: nowrap;
text-align: left;
text-decoration: none !important;
color: #000000 !important;
width: auto;
outline: none;
border: none;
background: none;
line-height: 35px;
height: 35px;
margin: 0 !important;
padding: 0 21px !important;
overflow: visible;
cursor: default;
z-index: 0;
}
.art-button img, .art-button-wrapper img
{
margin: 0;
vertical-align: middle;
}
.art-button-wrapper
{
vertical-align: middle;
display: inline-block;
position: relative;
height: 35px;
overflow: hidden;
white-space: nowrap;
width: auto;
margin: 0;
padding: 0;
z-index: 0;
}
.firefox2 .art-button-wrapper
{
display: block;
float: left;
}
input, select, textarea, select
{
vertical-align: middle;
font-family: Arial, Helvetica, Sans-Serif;
font-style: normal;
font-weight: bold;
font-size: 14px;
}
.art-block select
{
width:96%;
}
.art-button-wrapper.hover .art-button, .art-button:hover
{
color: #000000 !important;
text-decoration: none !important;
}
.art-button-wrapper.active .art-button
{
color: #F2F2F2 !important;
}
.art-button-wrapper .l, .art-button-wrapper .r
{
display: block;
position: absolute;
z-index: -1;
height: 105px;
margin: 0;
padding: 0;
background-image: url(‘../images/button.png’);
}
.art-button-wrapper .l
{
left: 0;
right: 11px;
}
.art-button-wrapper .r
{
width: 411px;
right: 0;
clip: rect(auto, auto, auto, 400px);
}
.art-button-wrapper.hover .l, .art-button-wrapper.hover .r
{
top: -35px;
}
.art-button-wrapper.active .l, .art-button-wrapper.active .r
{
top: -70px;
}
.art-button-wrapper input
{
float: none !important;
}
/* end Button */
/* begin Box, Post */
.art-post
{
position: relative;
z-index: 0;
margin: 0 auto;
min-width: 3px;
min-height: 3px;
}
.art-post-body
{
position: relative;
z-index: 1;
padding: 11px;
}
.art-post-tr, .art-post-tl, .art-post-br, .art-post-bl, .art-post-tc, .art-post-bc,.art-post-cr, .art-post-cl
{
position: absolute;
z-index: -1;
}
.art-post-tr, .art-post-tl, .art-post-br, .art-post-bl
{
width: 2px;
height: 2px;
background-image: url(‘../images/post_s.png’);
}
.art-post-tl
{
top: 0;
left: 0;
clip: rect(auto, 1px, 1px, auto);
}
.art-post-tr
{
top: 0;
right: 0;
clip: rect(auto, auto, 1px, 1px);
}
.art-post-bl
{
bottom: 0;
left: 0;
clip: rect(1px, 1px, auto, auto);
}
.art-post-br
{
bottom: 0;
right: 0;
clip: rect(1px, auto, auto, 1px);
}
.art-post-tc, .art-post-bc
{
left: 1px;
right: 1px;
height: 2px;
background-image: url(‘../images/post_h.png’);
}
.art-post-tc
{
top: 0;
clip: rect(auto, auto, 1px, auto);
}
.art-post-bc
{
bottom: 0;
clip: rect(1px, auto, auto, auto);
}
.art-post-cr, .art-post-cl
{
top: 1px;
bottom: 1px;
width: 2px;
background-image: url(‘../images/post_v.png’);
}
.art-post-cr
{
right: 0;
clip: rect(auto, auto, auto, 1px);
}
.art-post-cl
{
left: 0;
clip: rect(auto, 1px, auto, auto);
}
.art-post-cc
{
position: absolute;
z-index: -1;
top: 1px;
left: 1px;
right: 1px;
bottom: 1px;
background-color: #DBFFEC;
}
.art-post
{
margin: 7px;
}
a img
{
border: 0;
}
.art-article img, img.art-article
{
border: solid 1px #00F070;
margin: 10px;
}
.art-metadata-icons img
{
border: none;
vertical-align: middle;
margin: 2px;
}
.art-article table, table.art-article
{
border-collapse: collapse;
margin: 1px;
width: auto;
}
.art-article th, .art-article td
{
padding: 2px;
border: solid 2px #949494;
vertical-align: top;
text-align: left;
}
.art-article th
{
text-align: center;
vertical-align: middle;
padding: 7px;
}
pre
{
overflow: auto;
padding: 0.1em;
}
/* end Box, Post */
/* begin PostMetadata, PostMetadataHeader */
.art-postmetadataheader
{
padding: 1px;
overflow:hidden;
background-color: #ADFFD3;
border-color: #61FFAB;
border-style: solid;
border-width: 1px;
}
/* end PostMetadata, PostMetadataHeader */
/* begin PostHeaderIcon */
.art-post h2.art-postheader,
.art-post h2.art-postheader a,
.art-post h2.art-postheader a:link,
.art-post h2.art-postheader a:visited,
.art-post h2.art-postheader a.visited,
.art-post h2.art-postheader a:hover,
.art-post h2.art-postheader a.hovered
{
margin: 0.2em 0;
padding: 0;
font-weight: normal;
font-size: 24px;
text-align: center;
color: #000000;
}
.art-post h2.art-postheader a,
.art-post h2.art-postheader a:link,
.art-post h2.art-postheader a:visited,
.art-post h2.art-postheader a.visited,
.art-post h2.art-postheader a:hover,
.art-post h2.art-postheader a.hovered
{
margin: 0;
text-align: left;
text-decoration: none;
color: #007537;
}
.art-post h2.art-postheader a:visited,
.art-post h2.art-postheader a.visited
{
color: #4F4F4F;
}
.art-post h2.art-postheader a:hover,
.art-post h2.art-postheader a.hovered
{
color: #666666;
}
/* end PostHeaderIcon */
/* begin PostIcons, PostHeaderIcons */
.art-postheadericons
{
color: #383838;
padding: 1px;
}
.art-postheadericons, .art-postheadericons a, .art-postheadericons a:link, .art-postheadericons a:visited, .art-postheadericons a:hover
{
font-size: 12px;
}
.art-postheadericons a, .art-postheadericons a:link, .art-postheadericons a:visited, .art-postheadericons a:hover
{
margin: 0;
font-style: normal;
font-weight: bold;
text-decoration: none;
color: #00A34C;
}
.art-postheadericons a:visited, .art-postheadericons a.visited
{
color: #525252;
}
.art-postheadericons a:hover, .art-postheadericons a.hover
{
text-decoration: underline;
color: #6B6B6B;
}
/* end PostIcons, PostHeaderIcons */
/* begin PostBullets */
.art-post ol, .art-post ul
{
color: #383838;
margin: 1em 0 1em 2em;
padding: 0;
font-size: 12px;
}
.art-post li ol, .art-post li ul
{
margin: 0.5em 0 0.5em 2em;
padding: 0;
}
.art-post li
{
margin: 0.2em 0;
padding: 0;
}
.art-post ul
{
list-style-type: none;
}
.art-post ol
{
list-style-position: inside;
}
.art-post li
{
padding: 0 0 0 19px;
line-height: 1em;
}
.art-post ol>li
{
background: none;
padding-left: 0;/* overrides overflow for «ul li» and sets the default value */
overflow: visible;
}
.art-post ul>li
{
background-image: url(‘../images/postbullets.png’);
background-repeat: no-repeat;
padding-left: 19px;/* makes «ul li» not to align behind the image if they are in the same line */
overflow-x: visible;
overflow-y: hidden;
}
/* end PostBullets */
/* begin PostQuote */
blockquote,
blockquote p,
.art-postcontent blockquote p
{
color: #000000;
text-align: left;
}
blockquote,
.art-postcontent blockquote
{
border: solid 1px #61FFAB;
margin: 10px 10px 10px 50px;
padding: 5px 5px 5px 28px;
background-color: #ADFFD3;
background-image: url(‘../images/postquote.png’);
background-position: left top;
background-repeat: no-repeat;/* makes blockquote not to align behind the image if they are in the same line */
overflow: auto;
}
/* end PostQuote */
/* begin Footer */
.art-footer
{
position: relative;
overflow: hidden;
width: 100%;
}
.art-footer-t
{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #61FFAB;
}
.art-footer-body
{
position:relative;
padding: 8px;
}
.art-footer-body .art-rss-tag-icon
{
position: absolute;
left: 10px;
bottom:8px;
z-index:1;
}
.art-rss-tag-icon
{
display: block;
background-image: url(‘../images/livemarks.png’);
background-position: center right;
background-repeat: no-repeat;
height: 32px;
width: 32px;
cursor: default;
}
.art-footer-text, .art-footer-text p
{
margin: 0;
padding: 0;
text-align: center;
}
.art-footer,
.art-footer p,
.art-footer a,
.art-footer a:link,
.art-footer a:visited,
.art-footer a:hover
{
color: #000000;
font-style: normal;
font-weight: normal;
font-size: 13px;
}
.art-footer-text
{
min-height: 32px;
margin: 0 10px 0 10px;
}
.art-footer a,
.art-footer a:link
{
color: #009947;
font-weight: bold;
text-decoration: none;
}
.art-footer a:visited
{
color: #1A1A1A;
}
.art-footer a:hover
{
color: #4D4D4D;
text-decoration: underline;
}/* end Footer */
/* begin PageFooter */
.art-page-footer, .art-page-footer a, .art-page-footer a:link, .art-page-footer a:visited, .art-page-footer a:hover
{
font-family: Arial;
font-size: 10px;
letter-spacing: normal;
word-spacing: normal;
font-style: normal;
font-weight: normal;
text-decoration: underline;
color: #666666;
}
.art-page-footer
{
margin: 1em;
text-align: center;
text-decoration: none;
color: #00CC5F;
}
/* end PageFooter */
/* begin LayoutCell, sidebar1 */
.art-content-layout .art-sidebar1
{
width: 27%;
}
/* end LayoutCell, sidebar1 */
/* begin LayoutCell, content */
.art-content-layout .art-content
{
width: 73%;
}
.art-content-layout .art-content-wide
{
width: 100%;
}
/* end LayoutCell, content */
table.moduletable th
{
font-size: 140%;
padding: .5em 0;
}
.firefox2 table.poll tr td div
{
font-size: 0;
}
#footer
{
text-align: center;
}
.contentpaneopen span.small, .contentpaneopen td.createdate, .contentpaneopen td.modifydate
{
font-size: 75%;
padding-bottom: 1em;
}
.column_separator
{
padding-left: .4em;
}
div.offline
{
background: #fffebb;
width: 100%;
position: absolute;
top: 0;
left: 0;
font-size: 1.2em;
padding: 5px;
}
/* headers */
table.moduletable th, legend
{
margin: 0;
font-weight: bold;
font-family: Helvetica,Arial,sans-serif;
font-size: 1.5em;
padding-left: 0;
margin-bottom: 10px;
text-align: left;
}
/* form validation */
.invalid
{
border-color: #ff0000;
}
label.invalid
{
color: #ff0000;
}
/** overlib **/
.ol-foreground
{
background-color: #f6f6f6;
}
.ol-background
{
background-color: #666;
}
.ol-textfont
{
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
}
.ol-captionfont
{
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #f6f6f6;
font-weight: bold;
}
.ol-captionfont a
{
color: #0B55C4;
text-decoration: none;
font-size: 12px;
}
/* spacers */
span.article_separator
{
display: none;
}
.column_separator
{
padding-left: 10px;
}
td.buttonheading img
{
border: none;
}
.clr
{
clear: both;
}
div#maindivider
{
border-top: 1px solid #ddd;
margin-bottom: 10px;
overflow: hidden;
height: 1px;
}
table.blog span.article_separator
{
display: none;
}
/* edit button */
.contentpaneopen_edit
{
float: left;
}
/* table of contents */
table.contenttoc
{
margin: 5px;
border: 1px solid #ccc;
padding: 5px;
float: right;
}
table.contenttoc td
{
padding: 0 5px;
}
/* content tables */
td.sectiontableheader
{
background: #efefef;
color: #333;
font-weight: bold;
padding: 4px;
border-right: 1px solid #fff;
}
tr.sectiontableentry0 td,
tr.sectiontableentry1 td,
tr.sectiontableentry2 td
{
padding: 4px;
}
td.sectiontableentry0,
td.sectiontableentry1,
td.sectiontableentry2
{
padding: 3px;
}
/* content styles */
table.contentpaneopen, table.contentpane
{
margin: 0;
padding: 0;
width: auto;
}
table.contentpaneopen li
{
margin-bottom: 5px;
}
table.contentpaneopen fieldset
{
border: 0;
border-top: 1px solid #ddd;
}
table.contentpaneopen h3
{
margin-top: 25px;
}
table.contentpaneopen h4
{
font-family: Arial, Helvetica, sans-serif;
color: #333;
}
.highlight
{
background-color: #fffebb;
}
/* module control elements */
table.user1user2 div.moduletable
{
margin-bottom: 0;
}
div.moduletable, div.module
{
margin-bottom: 25px;
}
div.module_menu h3
{
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
font-weight: bold;
color: #eee;
margin: -23px -4px 5px -5px;
padding-left: 10px;
padding-bottom: 2px;
}
div.module_menu
{
margin: 0;
padding: 0;
margin-bottom: 15px;
}
div.module_menu div div div
{
padding: 10px;
padding-top: 30px;
padding-bottom: 15px;
width: auto;
}
div.module_menu div div div div
{
background: none;
padding: 0;
}
div.module_menu ul
{
margin: 10px 0;
padding-left: 20px;
}
div.module_menu ul li a:link, div.module_menu ul li a:visited
{
font-weight: bold;
}
#leftcolumn div.module
{
padding: 0 10px;
}
#leftcolumn div.module table
{
width: auto;
}
/* forms */
table.adminform textarea
{
width: 540px;
height: 400px;
font-size: 1em;
color: #000099;
}
div.search input
{
width: 95%;
border: 1px solid #ccc;
margin: 5px 0 5px 0;
}
/* login form module and component */
.joomla15 form#form-login
{
text-align: left;
}
.joomla15 form#form-login fieldset
{
border: 0 none;
margin: 0;
padding: 0.2em;
}
.joomla15 form#form-login ul
{
list-style-type: none;
margin: 0;
padding: 0;
}
.joomla15 form#form-login ul li
{
background-image: none;
padding: 0;
}
.joomla16 form#login-form, .joomla16 form#login-form p
{
text-align: left;
}
.joomla16 form#login-form fieldset
{
border: 0 none;
margin: 0;
padding: 0.2em;
}
#modlgn_username, #modlgn_passwd
{
width: 90%;
}
#form-login-username, #form-login-password, #form-login-remember
{
display: block;
margin: 0;
}
form#com-form-login
{
text-align: left;
}
form#com-form-login fieldset
{
border: 0 none;
margin: 0;
padding: 0.2em;
}
form#com-form-login ul
{
list-style-type: none;
margin: 0;
padding: 0;
}
form#com-form-login ul li
{
background-image: none;
padding: 0;
}
/* thumbnails */
div.mosimage
{
margin: 5px;
}
div.mosimage_caption {
font-size: .90em;
color: #666;
}
div.caption
{
padding: 0 10px 0 10px;
}
div.caption img
{
border: 1px solid #CCC;
}
div.caption p
{
font-size: .90em;
color: #666;
text-align: center;
}
/* Parameter Table */
table.paramlist
{
margin-top: 5px;
}
table.paramlist td.paramlist_key
{
width: 128px;
text-align: left;
height: 30px;
}
div.message
{
font-weight: bold;
font-size: 14px;
color: #c30;
text-align: center;
width: auto;
background-color: #f9f9f9;
border: solid 1px #d5d5d5;
margin: 3px 0 10px;
padding: 3px 20px;
}
/* Banners module */
/* Default skyscraper style */
.banneritem img
{
display: block;
margin-left: auto;
margin-right: auto;
}
/* Text advert style */
.banneritem_text
{
padding: 4px;
font-size: 11px;
}
.bannerfooter_text
{
padding: 4px;
font-size: 11px;
background-color: #f7f7f7;
text-align: right;
}
/* Polls */
.pollstableborder
{
margin-top: 8px;
}
.pollstableborder td
{
text-align: left;
}
/* WebLinks */
span.description
{
display: block;
padding-left: 30px;
}
/* Frontend Editing*/
fieldset
{
border: 1px solid #ccc;
margin-top: 15px;
padding: 15px;
}
legend
{
margin: 0;
padding: 0 10px;
}
td.key
{
border-bottom: 1px solid #eee;
color: #666;
}
/* Tooltips */
.tool-tip
{
float: left;
background: #ffc;
border: 1px solid #d4d5aa;
padding: 5px;
max-width: 200px;
}
.tool-title
{
padding: 0;
margin: 0;
font-size: 100%;
font-weight: bold;
margin-top: -15px;
padding-top: 15px;
padding-bottom: 5px;
background: url(../../system/images/selector-arrow.png) no-repeat;
}
.tool-text
{
font-size: 100%;
margin: 0;
}
/* System Standard Messages */
#system-message
{
margin-bottom: 20px;
}
#system-message dd.message ul
{
background: #c3d2e5 url(../../system/images/notice-info.png) 4px center no-repeat;
border-top: 3px solid #de7a7b;
border-bottom: 3px solid #de7a7b;
margin: 0;
padding-left: 40px;
text-indent: 0;
}
/* System Error Messages */
#system-message dd.error ul
{
color: #c00;
background: #e6c0c0 url(../../system/images/notice-alert.png) 4px center no-repeat;
border-top: 3px solid #DE7A7B;
border-bottom: 3px solid #DE7A7B;
margin: 0;
padding-left: 40px;
text-indent: 0;
}
/* System Notice Messages */
#system-message dd.notice ul
{
color: #c00;
background: #efe7b8 url(../../system/images/notice-note.png) 4px center no-repeat;
border-top: 3px solid #f0dc7e;
border-bottom: 3px solid #f0dc7e;
margin: 0;
padding-left: 40px;
text-indent: 0;
}
#syndicate
{
float: left;
padding-left: 25px;
}
/* Component Specific Fixes */
#component-contact table td
{
padding: 2px 0;
}
.breadcrumbs img
{
margin: 0;
padding: 0;
border: 0;
}
.mceToolbarTop {
white-space: normal;
}
.mceEditor
{
background: none;
}
#archive-list
{
list-style-type: none;
margin: 0;
padding: 0;
}
#archive-list li
{
list-style-type: none;
background-image: none;
margin-left: 0;
padding-left: 0;
}
#navigation, #navigation p
{
text-align: center;
}
.article h3 img
{
border: none;
display: inline;
margin: 0;
padding: 0;
}
.art-footer-text .moduletable
{
border: none;
margin: 0;
padding: 0;
}
.pollstableborder td {
vertical-align: middle;
}
.img_caption.left
{
float: left;
margin-right: 1em;
}
.img_caption.right
{
float: right;
margin-left: 1em;
}
.img_caption.left p
{
clear: left;
text-align: center;
}
.img_caption.right p
{
clear: right;
text-align: center;
}
.img_caption img
{
margin: 0;
}
.contentheading
{
font-size: 24px;
color: #6B6B6B;
}
#system-message ul li {
background-image: none;
padding-left: 0;
}
/* pagination */
.joomla15 .pagination
{
margin: 0;
padding: 0;
text-align: center;
}
.joomla15 .pagination span
{
margin: 0;
padding: 0;
}
.joomla15 .pagination a
{
padding: 2px;
}
.joomla16 .pagination
{
margin: 0;
padding: 0;
text-align: center;
}
.joomla16 .pagination .counter
{
text-align: center;
}
.joomla16 .pagination ul
{
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}
.joomla16 .pagination li
{
display: inline;
padding: 2px 5px;
text-align: left;
margin: 0 2px;
background-image: none;
}
.joomla16 .pagination li.pagination-start,
.joomla16 .pagination li.pagination-start span,
.joomla16 .pagination li.pagination-end,
.joomla16 .pagination li.pagination-end span
{
padding: 0;
}
/* article navigation */
.joomla15 .pagenav
{
width: 100%;
}
.joomla15 .pagenav td,
.joomla15 .pagenav th
{
border: none;
font-weight: normal;
}
.joomla16 .pagenav
{
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}
.joomla16 .pagenav li
{
display: inline-block;
width: 40%;
text-align: center;
background-image: none;
}
/* blog layout */
.joomla16 .cols-2 .column-1,
.joomla16 .cols-2 .column-2,
.joomla16 .cols-3 .column-1,
.joomla16 .cols-3 .column-2,
.joomla16 .cols-3 .column-3
{
float: left;
clear: right;
}
.joomla16 .cols-2 .column-1 { width: 50%; }
.joomla16 .cols-2 .column-2 { width: 50%; }
.joomla16 .cols-3 .column-1 { width: 33%; }
.joomla16 .cols-3 .column-2 { width: 33%; }
.joomla16 .cols-3 .column-3 { width: 34%; }
.row-separator
{
clear: both;
float: none;
font-size: 1px;
display: block;
}
/* category items */
.joomla16 .cat-items ul.actions
{
display: inline;
margin: 0;
padding: 0;
}
.joomla16 .cat-items ul.actions li
{
display: inline;
margin: 0;
padding: 0;
background: none;
}
/* icon tooltip */
.joomla16 .tip
{
border: solid 1px #333;
background: #ffffcc;
padding: 3px;
text-align: left;
}
.joomla16 .tip-title
{
font-weight: bold;
}
/* Plugin compatilibity. */
/* 152316, DOCman */
.dm_taskbar ul
{
background-image: none;
margin: 0;
padding: 0;
}
.dm_taskbar ul li
{
background-image: none;
}/* Custom styles */
Комментарий by Алексей — 11.03.2011 @ 15:04
зачем код вставил весь?
Комментарий by сергей — 03.11.2011 @ 13:39
Спасибо, как раз то, что нужно было!!
Комментарий by Юрий — 14.11.2011 @ 12:06
Спасибо, помогло!!! Столько прокопался ,а здесь все так просто!!
Комментарий by Олег — 21.04.2012 @ 15:09
Просто оригинальное решение проблемы. Действительно помогло и поддерживает многие браузеры…
Комментарий by Александр — 07.09.2012 @ 13:48