corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » CSS for eBay Template


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author CSS for eBay Template
A2H GO
Member

Registered: 14th Sep 04
Location: Stoke
User status: Offline
8th Jan 12 at 16:55   View User's Profile U2U Member Reply With Quote

I have an eBay template and I want to change the background. This is the code:

code:


#mainpage {
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #a8b5b2;
background: #121e1b url(C:\Users\Ash\AppData\Roaming\Listing Factory 2011\Workspace\Template\55063\templatemo_main_bg.png) repeat;



When I change the file location to the image I want, it just tiles the wallpaper across the page, if I change repeat to no-repeat it just puts the image really small in the top left corner.

Any ideas?

[Edited on 08-01-2012 by A2H GO]
JakeyC
Member

Registered: 4th Nov 10
Location: Newcastle-under-Lyme, Staffordshire
User status: Offline
8th Jan 12 at 16:59   View User's Profile U2U Member Reply With Quote

background-size:cover;


css3 though unsure if it will work though
A2H GO
Member

Registered: 14th Sep 04
Location: Stoke
User status: Offline
8th Jan 12 at 17:07   View User's Profile U2U Member Reply With Quote

Like this:

code:



#mainpage {
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #a8b5b2;
background: #121e1b url(C:\Users\Ash\AppData\Roaming\Listing Factory 2011\Workspace\Template\16155\Temp698777888.jpg) no-repeat;
background-size:cover;




As that didnt work, this is what I've got:



See how the image is tiny in the corner...
ed
Member

Registered: 10th Sep 03
User status: Offline
8th Jan 12 at 17:34   View User's Profile U2U Member Reply With Quote

You haven't said what you're trying to achieve...
Dom
Member

Registered: 13th Sep 03
User status: Offline
8th Jan 12 at 18:01   View User's Profile U2U Member Reply With Quote

Yup, use CSS3 background cover.
code:

#mainpage {
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #a8b5b2;

background: url("C:\Users\Ash\AppData\Roaming\Listing Factory 2011\Workspace\Template\16155\Temp698777888.jpg");
background-size: cover;
background-repeat: no-repeat;




Also i'd check it in a few browsers outside of Listing Factory.
A2H GO
Member

Registered: 14th Sep 04
Location: Stoke
User status: Offline
8th Jan 12 at 18:14   View User's Profile U2U Member Reply With Quote



Ill check it out when I get in later.
Nismo
Member

Registered: 12th Sep 02
User status: Offline
8th Jan 12 at 19:24   View User's Profile U2U Member Reply With Quote

As Ed said you havent told us what you want the background to do?

if you want it repeated X & Y then just put

background: url("C:\Users\Ash\AppData\Roaming\Listing Factory 2011\Workspace\Template\16155\Temp698777888.jpg") repeat;

and remove background-repeat: no-repeat;

The default value repeats horizontally and vertically If this doesn't work, then there's something else wrong with your page?
A2H GO
Member

Registered: 14th Sep 04
Location: Stoke
User status: Offline
8th Jan 12 at 20:18   View User's Profile U2U Member Reply With Quote

You're right, I want to 'stretch' the one image I have rather than tile lots of little images.
Nismo
Member

Registered: 12th Sep 02
User status: Offline
8th Jan 12 at 21:36   View User's Profile U2U Member Reply With Quote

just increase the res in photoshop to 1680-x1050?
A2H GO
Member

Registered: 14th Sep 04
Location: Stoke
User status: Offline
8th Jan 12 at 21:46   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Nismo
just increase the res in photoshop to 1680-x1050?


Sorted it, this was it, I just resized the image using imageshack to 1024x768, not sure what that will look like on other sized screens though...


 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Anyone know PHP? Bit of help needed... liamC Geek Day 38 1443
24th Nov 06 at 23:02
by MarkPW
 
php question Tom J Geek Day 8 207
6th Jan 07 at 11:35
by drax
 
Website Re-Design ed Geek Day 5 387
27th Jul 07 at 20:55
by ed
 
asp/css Jodi_the_g Geek Day 3 172
28th Sep 08 at 15:09
by Ian
 
Magento/Zencart WATSON Geek Day 26 1209
19th Dec 10 at 13:08
by WATSON
 

Corsa Sport » Message Board » Off Day » Geek Day » CSS for eBay Template 28 database queries in 0.0147901 seconds