WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts

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

  Thread Tools Display Modes
Old 18th March 15, 02:53 AM   #1
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:

#header {
height: 200px;
background-image: url(banner_ps.png);
background-size: cover;
Many thanks
overburnz is offline   Reply With Quote
Old 18th March 15, 06:28 AM   #2
meesa's Avatar
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,716
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

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 02:16 PM.

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 - 2018, Jelsoft Enterprises Ltd.