WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > HTML & XHTML > Head banner size

Reply
  Thread Tools Display Modes
Old 18th March 15, 01:53 AM   #1
overburnz
WLC Member
 
Join Date: Mar 2015
Posts: 7
Default Head banner size

Hello, i'm trying to add a banner to a website i'm making, with 100px height, the thing is: the image only gets ok if the banner size is 200px (in the css stylesheet), i've resized the image in photoshop and the same thing happens...

here's my code:

Quote:
#header {
height: 200px;
background-image: url(banner_ps.png);
background-size: cover;
background-repeat:no-repeat;
Many thanks
overburnz is offline   Reply With Quote
Old 18th March 15, 05:28 AM   #2
meesa
WLC Mod
 
meesa's Avatar
 
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,710
Default Re: Head banner size

Images keep their ratio by default. If you want something wider, and not taller, you either have to stretch it, or resize it so that the ratio is what you want.
__________________
Praise be to the Lord God for the ability to learn, the capability to analyze, and the time to help users on this forum.
meesa is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:41 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyrightę 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.