background image problem

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
Locked
User avatar
spankme
Registered User
Posts: 39
Joined: Sun Nov 16, 2003 9:03 am
Contact:

background image problem

Post by spankme » Sat Dec 09, 2006 4:22 am

I read other articles simular to this here... but it dont work for
what i need... sorry..
what I have is.. I am using the stlye Blues..not subsilver..
I have changed the Background image.. I can not get the
background image to Stretch for different resolutions...
its fine in 1024 x 768.. but higher resolutions the background
has a large border on both sides...
here is the forum.. http://www.nascarsforum.com/
I have been playing with the Blues.css
here is the code...

Code: Select all

 /* General page style */
body {
	background-color: #9999FF;
	background-image: url(images/background.gif);
	background-repeat: no-repeat;
	background-position: top;}
        margin-top: 24px;
}
#header {
	background-image: url(images/header_bg.gif);
	padding-top: 70px;
	text-align:center;
}
#header img {
	margin:0 9px;
}
#header-bar {
	background-color:#6d393a ;
	height:13px;
	margin:0 5px;
}
#body {
	background-image:url(images/bg_main.jpg);
}
#content {
	background-image:url(images/bg_top.gif);
	background-repeat:no-repeat;
	background-position:top;
	padding: 5px 10px;
}
#footer {
	background-image:url(images/footer.gif);
	background-repeat:no-repeat;
	background-position:bottom;
	height:62px;
	padding:0 0 15px 0;
}
	
/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link,a:active,a:visited { color : #394b6d; }
a:hover		{ text-decoration: underline; color : #6d393a; }
hr	{ height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}


/* This is the outline round the main forum tables */
.forumline	{ background-color: #FFFFFF;}


/* Main table cell colours and backgrounds */
td.row1	{ background-color: #dadde4; }
td.row2	{ background-color: #d5d9e3; }
td.row3	{ background-color: #d1d6e3; }


/*
  This is for the table cell above the Topics, Post & Last posts on the index.php page
  By default this is the fading out gradiated silver background.
  However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
		background-color: #FFFFFF;
}

/* Header cells - the blue and silver gradient backgrounds */
th	{
	color: #FFFFFF; font-size: 11px; font-weight : bold;
	background-color: #415476; height: 25px; background-image:url(images/th_bg.gif);
}

td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
			background-color:#7f8185;  height: 28px;
}


td.cat,td.catHead,td.catBottom {
	height: 29px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
	font-weight: bold; height: 28px; }
td.row3Right,td.spaceRow {
	background-color: #ccd3e3; }

th.thHead,td.catHead { font-size: 12px; }


/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1,h2	{
			font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
			text-decoration: none; line-height : 120%; color : #000000;
}


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #394b6d; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover	{ color: #6d393a; text-decoration: underline; }


/* The register, login, search etc links at the top of the page */
.mainmenu		{ font-size : 11px; color : #000000 }
a.mainmenu		{ text-decoration: none; color : #394b6d;  }
a.mainmenu:hover{ text-decoration: underline; color : #6d393a; }


/* Forum category titles */
.cattitle		{ font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #ffffff}
a.cattitle		{ text-decoration: none; color : #ffffff; }
a.cattitle:hover{ text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink		{ font-weight: bold; font-size: 12px; color : #394b6d; }
a.forumlink 	{ text-decoration: none; color : #394b6d; }
a.forumlink:hover{ text-decoration: underline; color : #6d393a; }


/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav			{ font-weight: bold; font-size: 11px; color : #000000;}
a.nav			{ text-decoration: none; color : #394b6d; }
a.nav:hover		{ text-decoration: underline; }


/* titles for the topics: could specify viewed link colour too */
.topictitle			{ font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link   { text-decoration: none; color : #394b6d; }
a.topictitle:visited { text-decoration: none; color : #5493B4; }
a.topictitle:hover	{ text-decoration: underline; color : #6d393a; }


/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name			{ font-size : 11px; color : #000000;}

/* Location, number of posts, post date etc */
.postdetails		{ font-size : 10px; color : #000000; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px;}
a.postlink:link	{ text-decoration: none; color : #394b6d }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #6d393a}


/* Quote & Code blocks */
.code {
	font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
	background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
	font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
	background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}


/* Copyright and bottom info */
.copyright		{ font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;}
a.copyright		{ color: #444444; text-decoration: none;}
a.copyright:hover { color: #000000; text-decoration: underline;}


/* Form elements */
input,textarea, select {
	color : #000000;
	font: normal 11px Verdana, Arial, Helvetica, sans-serif;
	border-color : #000000;
	border-width:1px;
}

/* The text input fields background colour */
input.post, textarea.post, select {
	background-color : #FFFFFF;
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
	background-color : #EFEFEF;
	color : #000000;
	font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* The main submit button option */
input.mainoption {
	background-color : #FAFAFA;
	font-weight : bold;
}

/* None-bold submit button */
input.liteoption {
	background-color : #FAFAFA;
	font-weight : normal;
}

/* This is the line in the posting page which shows the rollover
  help line. This is actually a text box, but if set to be the same
  colour as the background no one will know ;)
*/
.helpline { background-color: #DEE3E7; border-style: none; }


/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("formIE.css");
Please... Any help would be so.... Appreciated!
Thank you!!!

User avatar
Greenweaver
Former Team Member
Posts: 3913
Joined: Tue Jan 10, 2006 5:25 am
Location: In the rain
Contact:

Post by Greenweaver » Sat Dec 09, 2006 3:04 pm

You cannot stretch an image, you would need to either keep it as it is or make a background image that can repeat itself without flaw.
Image
Modage: Page Title Number MOD
Linkage: Find me at Styles Support & Discussion | Get a new style | Customise your style | phpBB userguide
Noteage:
Graphics requests to members over 20 posts and genuine phpbb requirements | I do not provide custom psd files

Locked

Return to “[2.0.x] Styles Development & Discussion”