Recent Posts

Pages: 1 2 3 [4] 5 6 ... 9
31
CSS Fonts, Icons, Links / Re: CSS ICONS
« Last post by aireenrosas on October 18, 2017, 06:13:40 am »
Is it possible to use two icon in Css??
How to create your own icon in css??

yes..if you used new FontAwesome 4.0.0 there is css styles for stacked items.

<span class="fa-stack">
  <i class="fa fa-square-o fa-stack-2x"></i>
  <i class="fa fa-twitter fa-stack-1x"></i>
</span>

.fa-stack {
  position: relative;
  display: inline-block;
  width: 2em;
  height: 2em;
  line-height: 2em;
  vertical-align: middle;
}

.fa-stack-1x,
.fa-stack-2x {
  position: absolute;
  width: 100%;
  text-align: center;
 }
.fa-stack-1x {
  line-height: inherit;
}
.fa-stack-2x {
  font-size: 2em;
}

.fa-square-o:before {
  content: "\f096";
}

you can used it but in different action.
32
CSS Fonts, Icons, Links / Re: CSS ICONS
« Last post by lilclowns on October 18, 2017, 06:12:26 am »
Is it possible to use two icon in Css??
How to create your own icon in css??


hi ! march

You can't add more than one to the :before pseudo element.

I'd recommend doing this if :after element is not already being used:

  .fa-unsorted:before, .fa-sort:before {
        content: '\e9c2';
        margin-top: -10px;
        color: #999999;
        font-family: 'icomoon';
    }

    .fa-unsorted:after, .fa-sort:after{
        content: '\e9c1';
        margin-top: -15px;
        color: #999999;
        font-family: 'icomoon';
        right:0;
    }
33
JavaScript Operators / Re: STRING OPERATORS
« Last post by aireenrosas on October 18, 2017, 06:09:46 am »
Concatenate Operators are basically linking methods to define a certain address or location like a GPS n an internet scale.


very well said.
...

we used  + sign..to connect two word together



like this

<!DOCTYPE html>
<html>
<body>

<h2>JavaScript Operators</h2>

<p>The + operator concatenates (adds) strings.</p>

<p id="demo"></p>

<script>
var txt1 = "John";
var txt2 = "Doe";
document.getElementById("demo").innerHTML = txt1 + " " + txt2;
</script>

</body>
</html>

34
JavaScript Operators / Re: STRING OPERATORS
« Last post by aireenrosas on October 18, 2017, 06:08:10 am »
Concatenate Operators are basically linking methods to define a certain address or location like a GPS n an internet scale.


very well said.
...

we used  + sign..to connect two word together
35
CSS Fonts, Icons, Links / Re: CSS ICONS
« Last post by March on October 18, 2017, 06:08:08 am »
Is it possible to use two icon in Css??
How to create your own icon in css??
36
CSS Fonts, Icons, Links / Re: CSSFonts
« Last post by aireenrosas on October 18, 2017, 06:03:53 am »
Which of the following value is supposed to be a slightly bolder weight that standard bold in font attribute???????????



please try this code ..

<!DOCTYPE html>
<html>
<head>
<style>
p.ex1 {
    font: 15px arial, sans-serif;
}

p.ex2 {
    font: italic bold 12px/30px Georgia, serif;
}
</style>
</head>
<body>

<p class="ex1">This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</p>
<p class="ex2">This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</p>

</body>
</html>
37
CSS Fonts, Icons, Links / Re: CSSFonts
« Last post by aireenrosas on October 18, 2017, 06:00:56 am »

Advantages of CSS include better use of bandwidth and flexibility. Increased download speeds and reduced data transfer occur because style sheets are stored in the browser cache, allowing the use of multiple pages without the need to reload. Also, content submission forms are more flexible, because users who do not know how to use CSS or HTML coding can still easily select article or page layout.


CSS offers consistency by utilizing a global style sheet. By editing a few rules on the global style sheet, users can adjust style elements quickly and easily, and the changes will be implemented over the entire website.


Using style sheets also has disadvantages. For instance, style sheets do not offer the capability to specify property values as single expressions, nor do they contain variables. When a developer wants to change a fundamental constant, such as a color an object's height or width, the developer has to replace everything. Also, browser support for style sheets is inconsistent. Because of bugs or lack of support for language features, different browsers render layouts differently.
38
CSS Fonts, Icons, Links / Re: CSSFonts
« Last post by lilclowns on October 18, 2017, 06:00:28 am »
 for :MARCH

Best way to include CSS? Why use @import? 17 answers
Learning something new about CSS every day and I've come across @import. What the advantages and disadvantages of using it.

I know that you can link all your stylesheets in one stylesheet using @import. Then have that one stylesheet linked to all your HTML documents and not have multiple CSS urls on every HTML document. But what are the advantages or disadvantages using this method?
39
CSS Fonts, Icons, Links / Re: CSSFonts
« Last post by March on October 18, 2017, 05:56:47 am »
What are the  advantages and disadvantages of using CSS? just asking
40
JavaScript Operators / Re: BITWISE OPERATORS
« Last post by lilclowns on October 18, 2017, 05:48:44 am »
Bit wise Hi, @achoesierry
One way to dynamically build the mask is as follows ...
def flipbits(num):
    # flip all the bits in num and return the result
    mask = int((len(bin(num)) - 2) * "1", 2)
    return num ^ mask

a = 0b11101110 
print bin(flipbits(a))
Output ...
0b10001
In the above, we take the len of the binary representation of numand subtract 2 in order to discount the 0b. Then we can use the result to create a string with the appropriate number of 1s. We then pass that string to the int function, with 2 as the second argument, so that it is interpreted as a base 2 number during the conversion.
Note that leading 0s after the 0b get removed from the output because they are not essential for defining the value of the number. 0b10001 is equivalent to 0b00010001.

Pages: 1 2 3 [4] 5 6 ... 9