Log in

View Full Version : Strange <center> of content


TheAdminMarket
10-25-2014, 08:17 AM
Hello,

I've lost my mind trying to figure out why my contect is centering at:

http://www.xxx24.gr/dating.php

Within the page templates I was able to fix it by adding align="center". But look at the footer. Content appears centered.

Now look in another vB pages:
http://www.xxx24.gr/forum.php
http://www.xxx24.gr/blog.php

What on heck I'm doing wrong in the dating templates?

Thank you

Dave
10-25-2014, 09:15 AM
additional.css contains:

body {
text-align:center;
}

Remove that and the text is no longer centered.

TheAdminMarket
10-25-2014, 09:34 AM
Thank you, but can't find anything similar to additional.css.

Here is the content:

html {
background: url("images/xxx24/misc/bodybg.jpg") no-repeat center top #333;
background-attachment: fixed;
background-color: #333 !important;
}
div.forcetoregister {
background:url({vb:stylevar imgdir_misc}/register.png);
background-repeat: no-repeat;
width:300px;
height:200px;
padding:0 5px 3px;
position:fixed;
right:1px;
bottom:0px;
z-index:9999;
}

#newnav {
height: 30px;
background: url(images/xxx24/gradients/header-back.png) top left repeat-x;
border-bottom: 1px solid #000;
}

.toplinks {
position: relative;
padding-top:5px;
padding-right:0px;
}

.navtabs {
height: 56px;
}

.navtabs li:first-child {
border: 0;
}

.navtabs li a.navtab:hover {
height: 56px;
background-image: url("images/xxx24/gradients/tabon-red.png");
background-position: center top;
min-width: 113px;
max-width: 113px;
width: 113px;
line-height: 44px;
border: 0;
font-size: 11px;
}

.navtabs li.selected a.navtab {
color: #fff;
}

.navtabs li a.navtab {
height: 56px;
background-image: url("images/xxx24/gradients/taboff.png");
background-position: center top;
min-width: 113px;
max-width: 113px;
width: 113px;
line-height: 44px;
border: 0;
font-size: 11px;
padding: 0;
}

.navtabs li a {
padding: 0;
}

.navtabs li {
border: 0;
}

.navbar {
height: 78px;
}

.navtabs ul {
top: 53px;
border: 0px solid #1a1a1a;
}

.navbar_advanced_search li {
padding-top: 28px;
}

.globalsearch .searchbutton {
padding-top: 8px;
}

.globalsearch input.textbox {
height: 21px;
width: 150px;
border: 1px solid #2c2c2c;
background: url(images/bTech/gradients/bodytop.png) top left repeat-x;
}

.globalsearch .textboxcontainer span {
padding-top: 8px;
}

.globalsearch .textboxcontainer span, .globalsearch .textboxcontainer, .globalsearch .buttoncontainer span, .globalsearch .buttoncontainer {
border: 0;
}

#blueWrap {
margin: 0;
background-color: #f2f2f2;
height:100%;
}

#blueRight {
padding-right: 7px;
background: url(images/xxx24/gradients/border_left.png) top right repeat-y;
}

#blueLeft {
padding-left: 7px;
background: url(images/xxx24/gradients/border_right.png) top left repeat-y;
}

#usercp_content #forum_icon_legend, #wgo_legend, .forum_info .options_block_container, .thread_info .options_block_container {
display:none;
}

#forumthreadpost {
display:none;
}

/* Awesome Footer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.footer1 {
margin-top: -13px;
background: #000;
min-height: 140px;
padding: 15px 0 15px;
border-radius: 0px 0px 0px 0px;
}
.footer1 .container .col4 h3 {

font:small-caps bold 15px Tahoma,Calibri,Verdana,Geneva,sans-serif;
margin-bottom: 22px;
text-shadow: none;
border-bottom: 1px solid #FFFFFF;
color: #FF0000;
margin-bottom: 10px;
padding-bottom: 7px;
}

.hfont {
color: #fff;
font:small-caps bold 13px Tahoma,Calibri,Verdana,Geneva,sans-serif;
}
.footer1 p {
text-shadow: none;
}
.footer1 a {
color: whitesmoke;
text-shadow: 0 1px 0 #373736;
font:small-caps bold 13px Tahoma,Calibri,Verdana,Geneva,sans-serif;
}
.footer1 a:hover {
color: #FF0000;
}
.footer1 ul li {
background: url("social/icon_dot.gif") no-repeat scroll 0 8px transparent;
margin-bottom: 7px;
padding-left: 10px;
}
.col4 {
float: left;
margin-left: 25px;
width: 202px;
}

.footer1 .container .col4 h3 {
margin-bottom: 20px;
}

.fallowus {
width: 226px;
}

Dave
10-25-2014, 09:48 AM
My bad, it's in one of the following templates:

forumhome.css,options.css,vbcms.css,widgets.css,si debar.css,forumhome-rollup.css,usercp.css,additional.css

It looks like this, you could search for it in the templates:

/* Overriding default Grid css values for RTL compatability */
/*
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.6.0
*/
/*
Note: Throughout this file, the *property (star-property) filter is used
to give a value to IE that other browsers do not see. _property is only seen
by IE7, so the combo of *prop and _prop can target between IE6 and IE7.
*/

/*
Section: General Rules
*/

body {
text-align:center;
}

TheAdminMarket
10-25-2014, 03:31 PM
I tried searching for text-align:center; but it brought me a list for some dozens of templates. Seems impossible to figure where it is hidden.

I'll give a try to modify the footer by adding text-align:left. Seems that it will be easier.

--------------- Added 1414259594 at 1414259594 ---------------

Finally I edited the css for footer and everything seems to work fine in all non vB pages:
http://www.xxx24.gr/dating.php
http://www.xxx24.gr/escorts.php
http://www.xxx24.gr/discuss.php
http://www.xxx24.gr/coupons.php

Thank you very much for your time. Really appreciated.