• Страница 1 из 1
  • 1
Модератор форума: dotbot  
Сообщество uCoz » Архивариус » Корзина » Размер изображения на форуме. CSS
Размер изображения на форуме. CSS
Дарг_Гм
Сообщений: 15
Репутация: 4

Сообщение # 1 | 03:54:45
Доброго времени суток.

Адрес моего сайта: www.erreb.ru/

Суть проблемы: не могу ограничить размер изображения на форуме.
Прикрепляю картинку на форум, если картинка большого размера, то она выходит за рамки форума, нарушая текстуры.

Чтобы было наглядно видно:



Если не видно скриншот или не можете понять суть проблемы, ссылка на тему: http://www.erreb.ru/forum/5-235-2

Часть кода с CSS, надеюсь нужная часть.
Код
.forumContent {
  margin: auto;
  margin-top: 1px;
  width: auto;
  _width: 930px;
  margin: 10px 14px 0px 14px;
  background: #1b1b1b;
  padding: 10px;
  border-left: 1px solid #363636;
  border-right: 1px solid #121212;
  border-top: 1px solid #363636;
  border-bottom: 1px solid #121212;
  border-radius: 5px;
  -moz-border-radius: 5px;
}

.forumContent a:hover {
  text-decoration: underline;
}

.forumContent a {
  color: #dcc7ab;
  text-decoration: none;
}

.forumContent table {

  background: transparent;
}



Извините, за большой объем.
Спасибо за внимание.

Добавлено (17 Янв 2014, 03:54:45)
---------------------------------------------
Вот собственно весь код, если я "отрезок" неправильный выбрал.



Код
body {
  margin: 0px;
  background: #000000;
  font: 12px 'Verdana';
  color: #c9c9c9;
  text-align: center;
}

body a {
  color: #666666;
}

body a:hover{color:red} {
  text-decoration: none;
text-transform:capitalize
}

* {
  font-size: 12px;
  font-family: 'Verdana';
}

#city {
  width: 1120px;
  height: 385px;
  background: url(http://erreb.clan.su/err.png);
  margin: auto;
}
#boddy {
  width: 1120px;
  margin: auto;
  margin-top: -201px;
  padding: 0px;
}

#all {
  margin: auto;
  width: 960px;
}

#content_top {
  width: 960px;
  height: 4px;
  background: url(/.s/t/793/2.png);
}

#container {
  width: 960px;
  background: url(/.s/t/793/3.png);
  text-align: center;
}

#content_bottom {
  width: 960px;
  height: 4px;
  background: url(/.s/t/793/4.png);
}

#header_all {
  width: 960px;
  margin: auto;
}

#header_left {
  float: left;
  width: 450px;
  text-align: left;
}

#top_menu {
  text-transform: uppercase;
  text-align: left;
  margin-top: 11px;
  margin-left: 9px;
}

#top_menu a {
  color: #2b2b2b;
  text-decoration: none;
  height: 41px;
  line-height: 41px;
  vertical-align: middle;
  text-shadow: #eeeeee 1px 1px 1px;
  font-weight: bold;
}

#top_menu a:hover {
  text-decoration: underline;;
}

.left {
  float: left;
  text-align: center;
  background: url(/.s/t/793/5.png);
  display: table-cell;
  width: 75px;
}

.center {
  float: left;
  text-align: center;
  background: url(/.s/t/793/6.png);
  display: table-cell;
  width: 109px;
}

.right {
  float: left;
  text-align: center;
  background: url(/.s/t/793/7.png);
  display: table-cell;
  width: 74px;
}

#header_right {
  float: left;
  width: 500px;
  text-align: right;
}

#date {
  color: #ffffff;
  margin-top: 10px;
}

#site_logo {
  height: 140px;
  width: 500px;
  display: table-cell;
  vertical-align: middle;
  text-align: right;
  font: 34px 'Verdana';
  color: #ffffff;
}

#who_is {
  color: #ffffff !important;
}

#who_is a {
  color: #666666;
}

#maincol {
  width: 520px;
  background: #1b1b1b;
  vertical-align: top;
}

#maincol_inside a {
  color: #dcc7ab;
  text-decoration: none;
}

#maincol_inside a:hover {
  text-decoration: underline;
}

#maincol_inside {
  margin: 10px 10px 10px 10px;
  width: 500px;
  text-align: justify;
}

.eTitle {
  width: 500px;
  height: auto;
  line-height: 15px;
  color: #2c2c2c;
  background: url(/.s/t/793/8.png) repeat-y;
  text-shadow: #eeeeee 1px 1px 1px;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 5px 5px 5px 5px;
  -moz-border-radius: 5px 5px 5px 5px;
  padding: 8px 0px 8px 0px;
}

#maincol_inside .eTitle a {
  color: #2c2c2c;
  text-decoration: none;
  padding-left: 15px;
  font-weight: bold;
}

#maincol_inside .eTitle div a {
  padding-left: 0px;
}

#maincol_inside .eTitle a:hover {
  text-decoration: underline;
}

.eMessage, .cMessage, .eText, .eAnswer {
  border: 5px solid #262626;
  text-align: justify !important;
  color: #c9c9c9;
  padding: 0px;
  padding: 7px 10px !important;
  border-radius: 0px 0px 5px 5px;
  -moz-border-radius: 0px 0px 5px 5px;
}

.eMessage a, .cMessage a, .Text a, .eAnswer a {
  color: #dcc7ab !important;
}

.cMessage {
  border-radius: 2px;
  -moz-border-radius: 2px;
  border: 2px solid #262626;
  background: #212121;
}

.eDetails, .eDetails1, .eDetails2 {
  color: #ffffff;
}

.eBlock td {
  padding: 0px;
}

.myWinSuccess {
  color: #000000 !important;
  background: url(/.s/t/793/9.png) !important;
}

#leftcol {
  width: 220px;
  vertical-align: top;
  padding-top: 5px;
}

#rightcol {
  width: 220px;
  vertical-align: top;
  padding-top: 5px;
}

.block {
  width: 100%;
}

.blocktitle {
  color: #2b2b2b;
  margin: 0px 10px 0px 10px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: #eeeeee 1px 1px 1px;
  width: 200px;
  height: 30px;
  line-height: 30px;
  background: url(/.s/t/793/10.png);
  font-weight: bold;
}

.blockcontent {
  width: 200px;
  margin: 0px 10px 0px 10px;
  background: url(/.s/t/793/11.png);
  text-align: left;
  padding: 1px 0px;
}

.blockcontent_inside li {
  margin-left: 15px;
}

.blockcontent_inside ul {
  margin-left: 15px;
  padding-left: 0px;
}

ul.uMenuRoot {
  margin-left: 0px;
}

.blockcontent a {
  color: #ffffff;
  text-decoration: none;
}

.blockcontent a:hover {
  text-decoration: underline;
}

.blockcontent_inside {
  margin: 10px 10px 5px 10px;
  width: 180px;
  position:relative;
  z-index:5;
}

.blockbottom {
  width: 200px;
  height: 5px;
  margin-left: 10px;
  *margin-left: 0px !important;
  margin-bottom: 10px;
  overflow: hidden;
  background: url(/.s/t/793/12.png);
}

a.calMdayLink, .calMdayIs, .calMdayIsA {
  background: #a6a5a5;
  padding: 3px;
  color: #2b2b2b !important;
}

.calWday {
  margin: 3px;
  height: 22px;
  padding-bottom: 3px;
  padding-left: 3px;
  padding-right: 3px;
  background: url(/.s/t/793/13.png);
  border-left: 1px solid #252927;
  border-right: 1px solid #252927;
  border-top: 0px;
  border-bottom: 0px;
  color: #fefefe;
}

.calWdaySe, .calWdaySu {
  padding-bottom: 3px;
  background: url(/.s/t/793/14.png) repeat-x;
  border-left: 1px solid #252927;
  border-right: 1px solid #252927;
  border-top: 0px;
  border-bottom: 0px;
  color: #2b2b2b;
}

.calMday, calMdayA, .calMdayIs {
  font: 12px 'Arial';
  color: #fffefe;
}

.calMonthLink {
  font: 13px 'Arial';
}

.swchItem span, .swchItemA span {
  font: 11px 'Arial';
  height: 18px;
  width: 18px;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 3px;
  padding-right: 3px;
  background: url(/.s/t/793/15.png) repeat-x;
  border-left: 1px solid #252927;
  border-right: 1px solid #252927;
  border-top: 0px;
  border-bottom: 0px;
  color: #ffffff;
  text-decoration: none;
}

.swchItem span:hover {
  background-position: 0px -18px;
  color: #2b2b2b;
}

.swchItem span:active {
  background-position: 0px -36px;
  color: #2b2b2b;
}

.swchItem {
  text-decoration: none;
}

.admBarCenter div, .myWinSuccess {
  font-size: 11px !important;
  font-family: 'Arial' !important;
}

.uMenuH li {float:left;padding:0 5px;list-style: none;}

.uMenuV, .uMenuRoot {
  margin: 0px;
  padding: 0px;
  list-style-type: none;
}

.uMenuV .uMenuRoot .uMenuItem span {
  margin-left: 25px;
  margin-right: 10px;
  padding-right: 5px;
}

.u-menu span {
  margin-left: 0px;
}

.uMenuV .uMenuRoot li {
  height: 22px;
  line-height: 22px;
  width: 180px;
  margin-left: 0px;
  overflow: hidden;
  *overflow: visible !important;
}

.uMenuV .uMenuRoot a {
  outline: none;
  position: absolute;
  height: 22px;
  width: 180px;
  text-decoration: none;
  color: #fefefe;
  background: url(/.s/t/793/16.png);
}

.uMenuV .uMenuRoot a:hover {
  color: #2b2b2b;
  text-decoration: none;
  background: url(/.s/t/793/16.png);
  background-position: 360px 0px;
}

.uMenuV .uMenuRoot a:active {
  background: url(/.s/t/793/16.png);
  background-position: 180px 0px;
}

.uMenuV .uMenuRoota.uMenuItemA {
  background: url(/.s/t/793/16.png);
  color: #2b2b2b;
  background-position: 360px 0px;
}

.uMenuV .uMenuRoot .uMenuArrow {
  position: absolute;
  height: 7px;
  width: 4px;
  top: 7px;
  right: 2px;
  z-index: 2;
  background: url(/.s/t/793/17.gif) no-repeat;
}

.blockcontent_inside {
  padding: 0px;
}

#footer {
  margin-top: 50px;
  height: 36px;
  width: 100%;
  min-width: 1120px;
  background: url(/.s/t/793/18.png);
}

#copyright {
  height: 36px;
  line-height: 36px;
  width: 385px;
  background: url(/.s/t/793/19.png);
  margin: auto;
  color: #2b2b2b;
}

#copyright a {
  color: #666666;
}

#copyright img {
  vertical-align: middle !important;
}

.forumContent {
  margin: auto;
  margin-top: 1px;
  width: auto;
  _width: 600px;
  margin: 10px 14px 0px 14px;
  background: #1b1b1b;
  padding: 10px;
  border-left: 1px solid #363636;
  border-right: 1px solid #121212;
  border-top: 1px solid #363636;
  border-bottom: 1px solid #121212;
  border-radius: 5px;
  -moz-border-radius: 5px;
}

.forumContent a:hover {
  text-decoration: underline;
}

.forumContent a {
  color: #dcc7ab;
  text-decoration: none;
}

.forumContent table {

  background: transparent;
}

.gTable, .postTable {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;

}

.gTable td {
  border-collapse: collapse;
  padding: 0px;

  border: 1px solid #8d8e8e;
  background: #353535;  
}

.postTable td {
  border-collapse: collapse;
  padding: 5px;

  border: 1px solid #8d8e8e;
}

td.pollQuestion, td.pollAnswer, td.pollButtons, td.pollResults, .pollResults table td, td.pollTotal {
  border: 0px !important;
}

.gTableTop {
  height: 30px;
  background: url(/.s/t/793/9.png) !important;
  color: #2c2c2c !important;
  text-shadow: #eeeeee 1px 1px 1px;
  font-weight: bold;
  padding-left: 15px !important;
}

.gTableTop a {
  color: #2c2c2c !important;
  text-shadow: #eeeeee 1px 1px 1px;
  font-weight: bold;
  text-decoration: none !important;
}

.gTableTop a:hover {
  color: #2c2c2c !important;
  font-weight: bold;
  text-decoration: underline !important;
}

.postBottom table td {
  border: 0px;
}

.postSeparator {
  height: 2px;
}

.posttdMessage {
  text-align: justify;
}

.gTableSubTop, .threadPostTd, .threadViewTd, .threadAuthTd, .forumThreadTd, .forumPostTd {

}

a.TopSortLink {
  text-decoration: none;
}

a.TopSortLink:hover {
  text-decoration: underline;;
}

a.postUser {
  color: #ffffff;
  font-weight: bold;
}

a.forum, a.threadLink {
  font-weight: bold;
  margin: 5px;
}

.quoteMessage {
  background: #212121;
}

input[type=submit], input[type=reset], input [type=button]{
  margin: 2px 1px;
  height: 18px;
  padding-bottom: 3px;
  background: url(/.s/t/793/15.png) repeat-x;
  border-left: 1px solid #252927;
  border-right: 1px solid #252927;
  border-top: 0px;
  border-bottom: 0px;
  color: #fefefe;
  cursor: pointer;
  *overflow: visible;
  *padding:0 6px 3px 6px;
}
.commTd2 div{*width:100%;}

input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover {
  background: url(/.s/t/793/15.png) repeat-x;
  color: #2b2b2b;
  background-position: 0px -18px;
}

input[type=submit]:active, input[type=reset]:active, input[type=button]:active {
  background: url(/.s/t/793/15.png) repeat-x;
  background-position: 0px -36px;
}

.queryField {
  width: auto !important;
}

.niceRadio {
  width: 16px;
  height: 16px;
  display: inline-block;
  cursor: pointer;
  background: url(/.s/t/793/20.png);
  background-position: 0 -16px;
  overflow: hidden;
  vertical-align: middle;
}
.radioChecked {
  background-position: 0 0px !important;
}
.niceRadio input {
  margin-left: -17px;
}
span.niceRadio:hover {
  background-position: 0 -32px;
}

.gTable{text-align:left;}

.popupbody {
  background: #1b1b1b !important;
}

.userinfo {
  height: 30px;
  background: url(/.s/t/793/9.png) !important;
  color: #2c2c2c;
  text-shadow: #eeeeee 1px 1px 1px;
   

}

input[type=text], input[type=password], textarea, iframe#mchatIfm2{box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; *padding:3px 0px !important;}
.myBtnLeft img, .myBtnRight img, .myBtnLeftA img, .myBtnRightA img, .myBtnRight + td input, .myBtnRightA + td input { display: block }
.myBtnCenter, .myBtnCenterA { line-height:19px !important }
.myBtnCont { height:19px; padding-bottom:0 !important }
/* Цвет групп */  
  a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:blue;}  
  a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:red;}  
  a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:green;}  
  a.groupUser:link,a.groupUser:visited,a.groupUser:hover {color:Darkgray;}
Нимфадора
Сообщений: 3010
Репутация: 494

Сообщение # 2 | 04:49:54
Дарг_Гм, в лс.

Гадаю по фотографии! Спасибо в репутацию)) Платные услуги не дорого
Дарг_Гм
Сообщений: 15
Репутация: 4

Сообщение # 3 | 05:57:37
Цитата Нимфадора ()
Без ссылки на сайт не беспокоить!

Все ссылки в теме, внимательнее)

Добавлено (17 Янв 2014, 05:57:37)
---------------------------------------------
Спасибо за помощь.
Получил за чем пришел, лови спску wink

P.S.
Тему закрыть.
Нимфадора
Сообщений: 3010
Репутация: 494

Сообщение # 4 | 10:02:23
Цитата Дарг_Гм ()
Все ссылки в теме, внимательнее)

Это подпись моя))

Гадаю по фотографии! Спасибо в репутацию)) Платные услуги не дорого
Сообщество uCoz » Архивариус » Корзина » Размер изображения на форуме. CSS
  • Страница 1 из 1
  • 1
Поиск: