Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 28th Feb 2016, 02:27 PM   #1
Warrior Member
 
Join Date: 2016
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Change the size of picture ( CSS )
Share on: 
fb share twitter share gplus share more share

Hello,
I want to change size of this picture I want to The entire show.


sayou20 is offline  
Unread 29th Feb 2016, 12:33 AM   #2
HyperActive Warrior
War Room Member
 
Lokki08's Avatar
 
Join Date: 2009
Location: Finland
Posts: 302
Thanks: 53
Thanked 24 Times in 23 Posts
Default
Re: Change the size of picture ( CSS )
Share on: 
fb share twitter share gplus share more share

Hey sayou20,

I highly recommend you learning CSS and HTML. You can do so at W3Schools Online Web Tutorials. This is great website for newbies.

You say you want to resize that image using css, well you have at least few options. One is to use properties width and height directly in that image, for example:

<img src="/Images/my-image.png" width="XXX" height="XXX" />

Here of course you would provide the size of image you want in properties 'width' and 'height'.

Second option is using CSS. First you need to give class or id to that image and then in your xxxx.css file you need to give those 'width' and 'height' properties. Like this:

Let say you have index.html where your image is located.

<img src="/Images/my-image.png" id="my-image" /> (Giving id to that specific image)

OR

<img src="/Images/my-image.png" class="my-image-class" /> (Giving class name for that specific image)

Now you can go to your .css file, let's say it is called main.css and we choose the class way of image, thus in your main.css you would write:

.my-image-class {
width: xxx;
height: xxx;
}

Here you can specify the width and height as pixels, precents or em and other types.

Lokki08 is offline  
Unread 29th Feb 2016, 02:54 AM   #3
HyperActive Warrior
 
deepCode's Avatar
 
Join Date: 2015
Posts: 124
Thanks: 0
Thanked 28 Times in 27 Posts
Default
Re: Change the size of picture ( CSS )
Share on: 
fb share twitter share gplus share more share

Adding to Lokki's greate writeup:

1. You can put the CSS code directly in style="" attributes if you only want to scale one picture on-the-fly

2. If you give it width and height, the proportions of the image might get "****ed up", so it might be better to stick with one of it.

Artificial Intelligence meets content marketing

>>> AI-Writer.com <<<


You write the headline & our AI writes the article. (FREE while in alpha)

deepCode is offline  
Unread 6th Mar 2016, 08:06 PM   #4
Active Warrior
 
Duc Aaron's Avatar
 
Join Date: 2016
Posts: 36
Thanks: 3
Thanked 5 Times in 5 Posts
Default
Re: Change the size of picture ( CSS )
Share on: 
fb share twitter share gplus share more share

Read about html img tag in here
HTML img tag

Duc Aaron is offline  
Unread 7th Mar 2016, 09:15 AM   #5
Active Warrior
 
Join Date: 2016
Posts: 47
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: Change the size of picture ( CSS )
Share on: 
fb share twitter share gplus share more share

you can use :
<img src='url' id='image'/>
#image {
width : xxx;
height : xxx;
}

zozoreview is offline  
Closed Thread


Bookmarks

Tags
change, css, picture, size


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:46 PM.