Recent Posts

Pages: 1 2 [3] 4 5 ... 9
21
CSS Fonts, Icons, Links / Re: CSSFonts
« Last post by aireenrosas on October 18, 2017, 08:33:22 pm »
what are the css font families?

The font-family property specifies the font for an element.
The font-family property can hold several font names as a "fallback" system. If the browser does not support the first font, it tries the next font.

There are two types of font family names:

family-name
- The name of a font-family, like "times", "courier", "arial", etc.
generic-family - The name of a generic-family, like "serif", "sans-serif", "cursive", "fantasy", "monospace".


Start with the font you want, and always end with a generic family, to let the browser pick a similar font in the generic family, if no other fonts are available.

Note: Separate each value with a comma.

Note: If a font name contains white-space, it must be quoted. Single quotes must be used when using the "style" attribute in HTML.
22
CSS Fonts, Icons, Links / Re: CSS ICONS
« Last post by aireenrosas on October 18, 2017, 08:29:42 pm »
Can you show me some codes regarding on how to create an icon bar?

i hope it helps you...

<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {margin:0;}

.icon-bar {
    width: 100%;
    background-color: #555;
    overflow: auto;
}

.icon-bar a {
    float: left;
    width: 20%;
    text-align: center;
    padding: 12px 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 36px;
}

.icon-bar a:hover {
    background-color: #000;
}

.active {
    background-color: #4CAF50 !important;
}
</style>
<body>

<div class="icon-bar">
  <a class="active" href="#"><i class="fa fa-home"></i></a>
  <a href="#"><i class="fa fa-search"></i></a>
  <a href="#"><i class="fa fa-envelope"></i></a>
  <a href="#"><i class="fa fa-globe"></i></a>
  <a href="#"><i class="fa fa-trash"></i></a>
</div>

</body>
</html>
23
CSS Fonts, Icons, Links / Re: CSSFonts
« Last post by angelsky214 on October 18, 2017, 08:20:28 pm »
what are the css font families?
24
CSS Fonts, Icons, Links / Re: CSS ICONS
« Last post by angelsky214 on October 18, 2017, 08:17:50 pm »
Can you show me some codes regarding on how to create an icon bar?
25
CSS Fonts, Icons, Links / Re: CSS LINKS
« Last post by angelsky214 on October 18, 2017, 08:13:52 pm »
what are the first browser version that fully supports the selector?
26
JavaScript Operators / Re: STRING OPERATORS
« Last post by March on October 18, 2017, 07:03:43 am »
What is the difference between string concat and the + operator in java??
27
CSS Fonts, Icons, Links / Re: CSS LINKS
« Last post by March on October 18, 2017, 06:44:34 am »
How do you put a link in CSS??
28
JavaScript Operators / Re: ARITHMETIC OPERATORS
« Last post by aireenrosas on October 18, 2017, 06:22:09 am »
It is the portion where a binary process is done.

your right because it is a process of combining, dividing, subtracting and multiplying  the value of two or more number and return a single value.
29
JavaScript Operators / Re: ARITHMETIC OPERATORS
« Last post by lilclowns on October 18, 2017, 06:20:57 am »

5
down vote
favorite
I have written a set of functions to compute basic mathematical operations for my own Java-based programming language. First I tokenize input from the source code file and store it in a String array. For the mathematics, I simply read through the array looking for an operator (+, -, /, *) and if I find one I call a operation function. The language needs to be able to automatically handle double/int mathematics without additional casting or indication so obviously this complicates the functions. However, my question is, are these functions really the simplest and most efficient way to do basic math operations?: (Note, I have 4 just like this, one for each basic operation, just copy/pasted the same code with minor changes. That feels repetitive. Isn't there a better way to do this also along with the shortening of each function?)

Example:

5.32 + 7 returns 12.32

My Number Parser:

NumReturn numberParser(int cIndex) {
                 NumReturn nri;
                  NumReturn nrd;
                 try {
                         nri = new NumReturn(Integer.parseInt(Lexer.token[cIndex]), cIndex++, 'i');
                         System.out.println(nri.value + " ");
                         return nri;
                 } catch (NumberFormatException intExcep) {
                 }
                 try {
                         nrd = new NumReturn(Double.parseDouble((Lexer.token[cIndex])), cIndex++, 'd');
                         System.out.println(nrd.dvalue + " ");
                         return nrd;
                 } catch (NumberFormatException doubExcep) {
                         // doubExcep.printStackTrace();
                 }
                 return null;
         }`
30
CSS Fonts, Icons, Links / Re: CSS LINKS
« Last post by lilclowns on October 18, 2017, 06:16:59 am »
I am using Sublime Text to make my own website and Code Academy to help me learn! But I do not know how to link the css and the html. I have done the lesson were you do that and successfully completed it, but I can not get it to work in Sublime Text. Any help would be greatly appreciated.


Hi! achoesierry
I don't have any experience in sublime text nor do I know much about it either, however, I've been playing around with a few incredibly basic test webpages (mainly through boredom) and I know how to link them, a few lines of code here should help:

Within all your code in order to link you want to have this in your HTML document.

<!DOCTYPE html>
html
head
link type="text/css" rel="stylesheet" href="stylesheet.css"
title Test title
head

See the stylesheet.css? That refers to what your CSS extension is called, this link basically links the CSS file that I have called stylesheet.css, however, it can be called anything you want. (Keep in mind I have removed the start and end tags as they cause the code to disappear, not sure why that is. However, as you've gone onto coding a website I expect you know where the start and end tags should be.)
I.E.
link type="text/css" rel="stylesheet" href="chicken.css"
All I've done here is change the name of the filename and changed it in the "href" section.

Hope this helps, I may have completed the HTML course but it's possible I've gotten some things wrong, but this is what I've done in order to link my CSS and HTML together.
Pages: 1 2 [3] 4 5 ... 9