CustomBox+Journal Tips n Tricks-Updated 25-Sep-14

20 min read

Deviation Actions

CypherVisor's avatar
By
Published:
3.3M Views


More updates comings soon!!

You may put all your queries here in this blog comments.

Tips & tricks


1. How to align your elements in custombox or journal?
Use the following code:

<div align="center">Content here</div>


You can change the alignment to left, right, center & justify by simply replacing the words as shown below

<div align="left">Content here</div>


2. How do you change the font-size in a custombox?
Use the following code:

<font size="1">Your text here</font>
<font size="2">Your text here</font>
<font size="3">Your text here</font>
<font size="4">Your text here</font>
<font size="5">Your text here</font>
<font size="6">Your text here</font>
<font size="7">Your text here</font>


The result:

Font size = 1
Font size = 2
Font size = 3
Font size = 4
Font size = 5
Font size = 6
Font size = 7


3. How to change your font in a Custombox/Journal?
Use the following tag to change your font in your custombox.

<font face="FONT NAME">Your text here</font>


Example
<font face="Comic Sans MS">Your text here</font>


Result
Your text here


Safe fonts to use

Serif Fonts
Georgia      -----     The quick brown fox jumps over the lazy dog
Palatino Linotype, Book Antiqua      -----     The quick brown fox jumps over the lazy dog
Times New Roman      -----     The quick brown fox jumps over the lazy dog

Sans-Serif Fonts
Arial, Helvetica      -----     The quick brown fox jumps over the lazy dog
Arial Black, Gadget      -----     The quick brown fox jumps over the lazy dog
Comic Sans MS, cursive      -----     The quick brown fox jumps over the lazy dog
Impact, Charcoal      -----     The quick brown fox jumps over the lazy dog
Tahoma, Geneva      -----     The quick brown fox jumps over the lazy dog
Trebuchet MS, Helvetica     -----     The quick brown fox jumps over the lazy dog
Verdana, Geneva      -----     The quick brown fox jumps over the lazy dog

Monospace Fonts
Courier New, Courier      -----     The quick brown fox jumps over the lazy dog
Lucida Console, Monaco      -----     The quick brown fox jumps over the lazy dog


Combining "size" and "face"

Yes, it is possible to combine 'size' and 'face' (or other font properties) together to get a combined effect as below. Go ahead..Give it a try! ;)


Example
<font face="Comic Sans MS" size="5">Your text here</font>


Result
Your text here


4. How do you make a custom button? or How to make a clickable image for a custombox?
Use the following code to make an image clickable in your custombox:
Please note that you cannot make the image highlight on cursor hover as it normally does in case of a button.

<a href="URL"><img src="IMAGE_URL"/></a>


For example,

<a href="http://somrat.deviantart.com/"><img src="http://fc05.deviantart.net/fs71/f/2010/163/c/6/c674dcf288d8b1510017bad0ea7be1d7.png"/></a>


*If you are using a custom background in your custombox then you've to put the above code in the "body text here.." part of it. For more details check F.A.Q. Q.9 of this journal.


5. How to add videos in custombox/journal?
Use this tag to insert your videos
<da:embed profile="video type" id="ID of the video" />


You can insert 3 types of videos in DA.
1) Youtube
2) Vimeo
3) deviantART film

Codes to insert each type of videos
<da:embed profile="youtube" id="ID of the video" />
<da:embed profile="vimeo" id="ID of the video" />
<da:embed profile="film" id="ID of the video" />


How to get your video codes?
Getting the ID of a video is really simple. Follow these steps to get your respective codes..

1) Open the video in your browser
2) Copy the URL and look for the code (as shown below)
*for DA films just get the thumbcode of it
3) Paste the code in their respective code (as shown below)

Demo URLs

http://www.youtube.com/watch?v=fEzhek5K0To&feature=g-vrec
http://vimeo.com/32121460
:thumb91547543:


Paste the video ID as shown below
<da:embed profile="youtube" id="fEzhek5K0To" />
<da:embed profile="vimeo" id="32121460" />
<da:embed profile="film" id="91547543" />


NOTE: If you want to get the Youtube bar please follow the tutorial below:



6. How do you get the URL address of your NOTE? or What URL address do you put in buttons or any hyperlink to let people goto your NOTE directly?
Use the following URL to use it in a button or as a hyperlink.

http://my.deviantart.com/global/notes/form.php?to_user=USERNAME


Example:

http://my.deviantart.com/global/notes/form.php?to_user=CypherVisor



TIP: You can use multiple usernames in the above code by inserting their usernames separated by commas as follows:

http://my.deviantart.com/global/notes/form.php?to_user=CypherVisor, Moonbeam13, fourteenthstar



Trick update given by Nobody



7. How to make a button a disabled one?
Just insert the following word in the button that you are using.

disabledbutton

For example, I take a button code from  the range of buttons (can be found here cyphervisor.deviantart.com/gal…).

I am using this button for my example.


And the code that I'm using from this button is

<div class="thumb-holder"><a href="URL" class="smbuttonsmbutton-normal smbutton-small smbutton-curvy"><span class="post">I love my buttons very muchdiv</span></a></div>


How to get the disabled button?

Insert disabledbutton in the code.

<div class="thumb-holder"><a href="URL" class="smbuttonsmbutton-normal smbutton-small smbutton-curvy disabledbutton"><span class="post">I love my buttons very muchdiv</span></a></div>

The result:



*NOTE: Put the word disabledbutton only along with the other button classes such as gmbutton2r, sm-button etc.


8. How to insert a bigger thumb in your custombox/journal?
Just insert the word big in the thumbcode that you are using.

Example


Normal thumbcode---> :thumb136916642:


Big thumbcode---> :bigthumb136916642:



Even Bigger thumbcode---><da:deviation width="500" id="136916642">



Use any number in the width if you want to increase the size of the deviation.

EXAMPLE: <da:deviation width="600" id="136916642">





Alternate Custom Thumbnail code (NOT for literature thumbs): <a href="DEVIATION_URL"><img src="DEVIATION_IMAGE_URL" width="500"></a>

Where, DEVIATION_URL is the URL address of the deviations (the URL address of a deviation is present in the address bar of your browser when you open it in a new tab or page) and DEVIATION_IMAGE_URL is the direct image link of the deviation. (check FAQ#17 here to know how to copy the direct IMAGE URL of your deviation or for that matter any image)

EXAMPLE:<a href="http://cyphervisor.deviantart.com/art/Innocent-Dream-136916642"><img src="http://fc03.deviantart.net/fs51/i/2009/256/a/b/Innocent_Dream_by_somrat.jpg" width="500"></a>






You can even use the above code for your literature thumbs.

Note: When you are using this code for literature thumbs the journal thumbnail will automatically get generated.

Literature thumb---> :thumb299697102:



Example:  <da:deviation width="450" height="400" id="299697102">

NOTE: I have used the height property to fix the height of the literature thumbs as well!


Result:



9. How to create the donate button/ Add to watch direct URL?
Well, that's a very easy to do.

Donate points direct link:

http://USERNAME.deviantart.com/?givepoints


Replace the USERNAME  with your own (as shown below):

http://CypherVisor.deviantart.com/?givepoints



Watchers direct link:

http://my.deviantart.com/deviants/add/USERNAME


Replace the USERNAME  with your own (as shown below):

http://my.deviantart.com/deviants/add/CypherVisor



Now, use these URLs in any button code or any hyperlink that you want.

Also, note that please do not try these links with your own usernames because neither can you give your points to yourself nor watch yourself! :)



10. How to float images (or any element) in a custombox? or How do you place text and image side-by-side in your widget?
Use the following code to float your images (or any element) in a custom box.

To float elements to the LEFT:
<div class="al"></div>


To float elements to the RIGHT:
<div class="ar"></div>


Example:

<div class="al">:thumb299697102:</div>LoremIpsum is simply dummy text of the printing and typesetting industry. LoremIpsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.





11. How to change the color of hyperlinks?
First of all, this is an extension of the FAQ #11 given below.

So, if you know how to create hyperlinks using the <a> HTML tag and want to change the color of your hyperlinks then follow these steps:

1) Create your desired hyperlink by using the <a> tag (follow FAQ #11 if you do not how to do it)
2) Take your desired text color code from HERE (Only the colors mentioned there are available)
3) Replace the text inside the <a>...</a> with the color code
4) Done!


Example:

Let your hyperlink be the following:

<a href="YOUR_URL">YOUR_CUSTOMIZED_TEXT</a>



Now let's take the GREEN text color code from HERE (You can take any color code you want)

Here's the green text color code:
<div class="pager-select"><div class="enabled_subscription" align="justify">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div></div>


Now, replace the "YOUR_CUSTOMIZED_TEXT" with the color code as follows:

<a href="YOUR_URL"><div class="pager-select"><div class="enabled_subscription" align="justify">YOUR_COLORED_TEXT</div></div></a>


In the above example, I have just replaced the "Lorem Ipsum..." with YOUR_COLORED_TEXT for the sake of understanding.




*PLEASE NOTE you can’t use the above code to change username colors that are generated by :devUSERNAME: or @USERNAME codes.

However, you can change a USERNAME color by tweaking the above code by writing as follows:

<a href="http://cyphervisor.deviantart.com/">CypherVisor</a>






F.A.Q. (Frequently Asked Questions)


1. Is it possible to make more button with different colors other than which are already provided?
No. It is not possible. There are no more colors for buttons that is being defined in the DA website for your use. If anything new comes up I'll provide it to you.


2. How do I put my own URL in the custombox buttons?
Replace the text URL in any button code that you are using by your own URL

Example:

The button code:

<div class="thumb-holder"><a href="URL" class="smbuttonsmbutton-normal smbutton-small"><span class="post">I love my buttons very much</span></div>

Using your own URL:

<div class="thumb-holder"><a href="http://somrat.deviantart.com/" class="smbuttonsmbutton-normal smbutton-small"><span class="post">I love my buttons very much</span></div>


3. How do I put my own Text in the custombox buttons?
Replace the text I love my buttons very much in any button code that you are using by your own text

Example:

The button code:

<div class="thumb-holder"><a href="URL" class="smbuttonsmbutton-normal smbutton-small"><span class="post">I love my buttons very much</span></div>

Using your own URL:

<div class="thumb-holder"><a href="URL" class="smbuttonsmbutton-normal smbutton-small"><span class="post">Click to view my gallery</span></div>


4. Where would the FAIR/UNFAIR or YES/NO button lead? Does they have a counter or poll in-built?

The FAIR/UNFAIR or YES/NO are just buttons with your own URL address. It shall lead to whatever URL address you provide in their codes. And they do not have any counter or poll inbuilt.


5. Is it possible to have table inside a Custombox?
No. Its not possible.


6. Is it possible to have Content-holder boxes of custom colors?
Yes to an extent. Here's a tutorial for you: Content-Holder Background tutorial

You'll also find different colors of content holder boxes in my gallery folder. (Click "Customboxresouces" from the menu at the top of this journal to view them)

Plus, you can use the button codes (Buttons as Content-Holder boxes) to write your content inside it. There are many colors of button to choose from!


7. Is it possible to have scroll-bars inside a Custombox?


8. How do I put buttons next to each other in a Custombox?
Simply do not put any line-break (or in simple words, don't put the codes in the next line). Instead, put them in the same line.

For example, Let us take the codes of the button below (You can get more buttons here.. cyphervisor.deviantart.com/gal…)


Wrong way to put the buttons together after one another

<div class="thumb-holder"><a href="URL" class="smbuttonsmbutton-normal smbutton-small"><span class="post">I love my buttons very much</span></div>

<div class="thumb-holder"><a href="URL" class="smbuttonsmbutton-blue smbutton-small"><span class="post">I love my buttons very much</span></div>




Correct way to put the buttons together after one another

<div class="thumb-holder"><a href="URL" class="smbuttonsmbutton-normal smbutton-small"><span class="post">I love my buttons very muchspan>div><div class="thumb-holder"><a href="URL" class="smbuttonsmbutton-blue smbutton-small"><span class="post">I love my buttons very much</span></div>


9. How to get my custom background behind a content-holder box?
You simply need to replace the body text here.. with the content-holder box of your choice code.

For example, let us take the codes from the custom box background tutorial and the extruded content-holder box as given below. [You can get more content-holder boxes here.. somrat.deviantart.com/gallery/…)


Now, you get the codes from each of them

Custom-box background code
<div class="popup2-moremenu"><div class="floaty-boat"><br><img src="URL"/>div>div><div class="gr-box gr-genericbox"><br>Body text here..</div>

Content-holder box code
<div class="gr-box gr-headless"><i class="gr1"><i><i class="gr2"><i><i class="gr3"><i><div class="gr-body"><div class="gr"><div class="pp"><div align="center"><b>CONTENT HEADING HERE</b></div><br>Body text here..</div></div></div><i class="gr3 gb"><i class="gr2 gb"><i class="gr1 gb gb1"></div>

As said above, now put the content-holder box code in the custom box background code by replacing the body text here..

<div class="popup2-moremenu"><div class="floaty-boat"><br><img src="URL"/>div>div><div class="gr-box gr-genericbox"><br><div class="gr-box gr-headless"><i class="gr1"><i><i class="gr2"><i><i class="gr3"><i><div class="gr-body"><div class="gr"><div class="pp"><div align="center"><b>CONTENT HEADING HERE</b></div><br>Body text here..</div></div></div><i class="gr3 gb"><i class="gr2 gb"><i class="gr1 gb gb1"></div></div>



10. Can I change the text/font color in my custom widget boxes?
Yes, you can change to some colors. Here's a list of colors and their respective codes: cyphervisor.deviantart.com/art…


11. How to use hyperlinks with different text?
If you want to have a link (or URL) displayed to a customized text then use the following code:

<a href="YOUR_URL">YOUR_CUSTOMIZED_TEXT</a>



Example:
<a href="http://cyphervisor.deviantart.com/journal/CustomBox-Journal-Tips-n-Tricks-Updated-08-June-13-299697102">Custombox F.A.Q. + Tips and tricks</a>


Result:




12. How do you insert an image in your Custom box or journal?
Use the following code to insert and image in your  Custom box or journal.

<img src="IMAGE_URL"/>



Example:
<img src="http://fc01.deviantart.net/fs70/f/2013/069/d/6/fella_by_cyphervisor-d5xk416.png"/>


Result:




13. How do you resize an image in your Custom box or journal?
Just use the width or height property in your <img> tag in F.A.Q. #12 as shown below:

<img width="300" src="IMAGE_URL"/>


or

<img height="200" src="IMAGE_URL"/>


or you can use both width and height together

<img width="300" height="200" src="IMAGE_URL"/>

*Please note: If you use width and height together then you might change the resolution of the image disproportionately.




14. How do I get rid of the arrow symbols in my links/URLs and buttons?
If you haven't noticed it yet. DA always put an arrow symbol when you are trying to use an "external link" (for example a facebook.com link or a tumblr.com link) in the <a> tag or a button code (as below).



NOTE: The arrow is displayed only when you are using an external link! It WILL NOT display the arrow if you are using a DA link. (such as a link to someone's profile page in DA or a deviation link etc.)


The simple solution to get rid of that is by pre-fixing the below URL in your <a> tag or a button code URL:


http://deviantart.com/users/outgoing?



Example:
Let your external link be: http://facebook.com/


Solution:
BUTTON CODE:
<div class="thumb-holder"><a href=" http://deviantart.com/users/outgoing?http://facebook.com/" class="smbuttonsmbutton-normal smbutton-small"><span class="post">I love my buttons very much</span></a></div>

<a>tag:
<a href="http://deviantart.com/users/outgoing?http://facebook.com/">Facebook</a>


Result:


This fix was found by Nobody


15. How do I get rid of the bold text in my links/URLs and buttons?
You may have noticed if you use the above trick (FAQ #13) to get rid of the arrow or in general while inserting links in your journal or widgets you get your links bold as below:



To get rid of the bold text use the following code for your text inside your <a> tag or a button code:

<div class="devlinkzone"><b>YOUR_TEXT</b></div>


Solution:
BUTTON CODE:
<div class="thumb-holder"><a href="http://facebook.com/" class="smbuttonsmbutton-normal smbutton-small"><span class="post"><div class="devlinkzone"><b>I love my buttons very much</b></div></span></a></div>

<a>tag:
<a href="http://facebook.com/"><div class="devlinkzone"><b>Facebook</b></div></a>


Result:



16. How do I get the direct link to my Llama giving page/ Cake giving page?
You can provide a direct link to other deviants which redirects them to a page that will take them directly to a page where they can gift you a llama. Yes, even without visiting your page and clicking on the "Give" button on the top-right corner and then clicking on the "Give a llama badge" menu they can bypass it and goto a page and give you a llama.


Llama page direct link:


Here's how you do it:

1) Log out from your page and login to deviantart using another account. (Otherwise you can tell you friend to do this for you ;) )

2) After logging into the other account go to your page and click on the "Give" button and then click on "Give a Llama badge" menu from the dropdown. (as shown above)

3) In the pop-up window that opens (as shown below), right-click on the "Terms and Conditions for Points" and click on “Open in new tab” or “Open in a new window”



4) In the new browser tab or page that opens Copy the URL address (as shown below) and that my friend, is the direct link to your llama page! ;)



Cake page direct link:

For the cake page follow the same steps as given above but this time you just select "Give a Cake Badge". :)



17. How do I copy the image URL (or deviation image URL or deviation image link)?
To copy the URL of an image that appears on a page do the following:

Please follow the steps according to the browser that you are using!!

Internet Explorer

   1. Click on the desired picture with the right mouse button
   2. Select Properties from the menu
   3. Highlight the address appearing under Address (URL):
   4. Press Ctrl-C (shortcut key to copy the URL)

Mozilla Firefox

   1. Click on the image with the right mouse button.
   2. Choose "Copy Image Location" from the menu.

Safari and Opera

   1. Click on the desired image with the right mouse button (or holding down Ctrl while clicking with the left or only button).
   2. Select "Copy Image Address" from the menu.

Google Chrome

   1. Click on the image with the right mouse button
   2. Select "Copy Image URL" from the menu that comes up

HINT: An Image URL always ends with an image extension such as .jpg or .png or .gif etc.

Example: http://fc01.deviantart.net/fs70/f/2013/069/d/6/fella_by_cyphervisor-d5xk416.png


18. Can I change the icons of my widgets?
No, you can't!



© 2012 - 2024 CypherVisor
Comments3100
Join the community to add your comment. Already a deviant? Log In
your-citrus-friend's avatar

ok but like- when i pasted my thing in the customs box i mustve done it wrong because its just a bunch of text ;-;