Camp Half Blood
Oops! You're not logged in to Camp Half Blood! If you're already registered with us, click log in. If you're not, you better register before the monsters come get you!
Camp Half Blood
Oops! You're not logged in to Camp Half Blood! If you're already registered with us, click log in. If you're not, you better register before the monsters come get you!
Camp Half Blood
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeSearchGalleryLatest imagesRegisterLog in
Welcome to CHB!
Camp Half Blood is the sister site of Camp Jupiter.

 

 A Quick guide: Borders around an image

Go down 
2 posters
AuthorMessage
cher
Experienced Poster
cher


Posts : 2315
Join date : 2011-09-19
Age : 24
Location : I have no idea. I just woke up here, dude.

A Quick guide: Borders around an image Empty
PostSubject: A Quick guide: Borders around an image   A Quick guide: Borders around an image I_icon_minitimeFri Nov 02, 2012 9:35 pm



So I'm too damn lazy to code this yay.

First of all, you need your image. So if I'm just going to use one of my edits because I don't want to get into any kind of legal trouble.

Spoiler:
The link is
Code:
http://static.tumblr.com/nkaxgk2/4lqmaxl5b/lwwy.jpg

Now you have your code. So I'm going to use a basic code
Code:
<div style="height: 200px; width: 200px;"></div>

You can edit it to do whatever you want later.

Now we're going to add the border in.

Code:
<center><div style="width:450px; height: 450px; border-left: white 10px dashed; border-right: white 10px dashed; border-bottom: white 10px dashed; border-top: white 10px dashed;"></div></center>

Okay, the border looks like this.

Spoiler:

Now I'm going to add the image in

The code is
Code:
background-img: (http://static.tumblr.com/nkaxgk2/4lqmaxl5b/lwwy.jpg);

You would apply this into your div. (where you have the 'border' code.)

Spoiler:

or

Code:
<img src="http://static.tumblr.com/nkaxgk2/4lqmaxl5b/lwwy.jpg">

This one would go in the code like this:
Code:
<center><div style="width:300px; height: 320px; border-left: white 10px solid; border-right: white 10px solid; border-bottom: white 10px solid; border-top: white 10px solid;"> <img src="http://static.tumblr.com/nkaxgk2/4lqmaxl5b/lwwy.jpg"></div>
it looks like this:


It works either way. And they should look the same.
Back to top Go down
sapphire
Sardonic Twin
sapphire


Posts : 3003
Join date : 2011-12-17
Age : 29
Location : neither here nor there

A Quick guide: Borders around an image Empty
PostSubject: Re: A Quick guide: Borders around an image   A Quick guide: Borders around an image I_icon_minitimeFri Nov 02, 2012 10:45 pm

There is a shorter way to do this.
Code:
<img src="http://static.tumblr.com/nkaxgk2/4lqmaxl5b/lwwy.jpg" style="border:10px white solid">


Yields the same results and you don't even need the div tag.
Back to top Go down
http://phoenixsapphire.deviantart.com
cher
Experienced Poster
cher


Posts : 2315
Join date : 2011-09-19
Age : 24
Location : I have no idea. I just woke up here, dude.

A Quick guide: Borders around an image Empty
PostSubject: Re: A Quick guide: Borders around an image   A Quick guide: Borders around an image I_icon_minitimeFri Nov 02, 2012 11:46 pm

Yeah what she said.

[I made this in less than 5 minutes so uhh...]
Back to top Go down
Sponsored content





A Quick guide: Borders around an image Empty
PostSubject: Re: A Quick guide: Borders around an image   A Quick guide: Borders around an image I_icon_minitime

Back to top Go down
 
A Quick guide: Borders around an image
Back to top 
Page 1 of 1
 Similar topics
-
» Quick! I need help!
» :) Hey everyone, just a quick heads up
» Quick visit
» Quick RPing
» A Quick Fling [P R I V A T E]

Permissions in this forum:You cannot reply to topics in this forum
Camp Half Blood :: Community :: Guides & Tutorials-
Jump to: