SQL> desc emp
Name Type
---------------- ----------
EMPNO NUMBER
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER
HIREDATE DATE
SAL NUMBER
COMM NUMBER
DEPTNO NUMBER
<table>
<tr>
<td> R1 C1 </td>
<td> R1 C2 </td>
<td> R1 C3 </td>
</tr>
<tr> ... R2 ... </tr>
<tr> ... R3 ... </tr>
</table>
R1 C1 | R1 C2 | R1 C3 |
R2 C1 | R2 C2 | R2 C3 |
R3 C1 | R3 C2 | R3 C3 |
<table border="1">
<tr>
<td> R1 C1 </td>
<td> R1 C2 </td>
<td> R1 C3 </td>
</tr>
<tr> ... R2 ... </tr>
<tr> ... R3 ... </tr>
</table>
R1 C1 | R1 C2 | R1 C3 |
R2 C1 | R2 C2 | R2 C3 |
R3 C1 | R3 C2 | R3 C3 |
<table border="1">
<tr>
<td> R1 C1 </td>
<td colspan="2"> R1 C2 </td>
<td> R1 C3 </td>
</tr>
<tr> ... R2 ... </tr>
<tr> ... R3 ... </tr>
</table>
R1 C1 | R1 C2 | R1 C3 | |
R2 C1 | R2 C2 | R2 C3 | |
R3 C1 | R3 C2 | R3 C3 |
<table border="1">
<tr>
<td> R1 C1 </td>
<td colspan="2"> R1 C2 </td>
</tr>
<tr> ... R2 ... </tr>
<tr> ... R3 ... </tr>
</table>
R1 C1 | R1 C2 | |
R2 C1 | R2 C2 | R2 C3 |
R3 C1 | R3 C2 | R3 C3 |
<table border="1">
<tr>
<td> R1 C1 </td>
<td colspan="2"> R1 C2 </td>
</tr>
<tr>
<td rowspan="2"> R2 C1 </td>
<td> R2 C2 </td>
<td> R2 C3 </td>
<tr>... R3 ... </tr>
</table>
R1 C1 | R1 C2 | |
R2 C1 | R2 C2 | R2 C3 |
R3 C1 | R3 C2 | R3 C3 |
<table border="1">
<tr>
<td> R1 C1 </td>
<td colspan="2"> R1 C2 </td>
</tr>
<tr>
<td rowspan="2"> R2 C1 </td>
<td> R2 C2 </td>
<td> R2 C3 </td>
<tr>... R3 ... </tr>
</table>
R1 C1 | R1 C2 | |
R2 C1 | R2 C2 | R2 C3 |
R3 C1 | R3 C2 | R3 C3 |
<table border="1">
<tr>
<td> R1 C1 </td>
<td> R1 C2 </td>
<td> R1 C3 </td>
</tr>
<tr>
<td> R2 C1 </td>
<td> This is a long value </td>
<td> R2 C3 </td>
</tr>
<tr> ... R3 ... </tr>
</table>
R1 C1 | R1 C2 | R1 C3 |
R2 C1 | This is a long value | R2 C3 |
R3 C1 | R3 C2 | R3 C3 |
SQL> alter table emp add notes varchar2(2000);
Table altered.
If we have different tables, their cell widths are independent of each other.
<table border="1">
<tr>
<td> R1 C1 </td>
<td> R1 C2 </td>
<td> R1 C3 </td>
</tr>
</table>
<table border="1">
<tr>
<td> R2 C1 </td>
<td> This is a long value </td>
<td> R2 C3 </td>
</tr>
<tr> ... R3 ... </tr>
</table>
R1 C1 | R1 C2 | R1 C3 |
R2 C1 | This is a long value | R2 C3 |
R3 C1 | R3 C2 | R3 C3 |
<span class="uButtonContainer">
#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#
</span>
.clearfix:after {
content: ".";
visibility: hidden;
display: block;
height: 0;
clear: both;
}
<div class="uRegionContent clearfix">
<div style="float: right;">awesome content!</div>
<div>
<div class="mycontainer clearfix">
<div class="square">Box 1</div>
<div class="square">Box 2</div>
</div>
.mycontainer {
width: 600px;
border: 1px solid red;
}
.square {
width: 150px;
height: 150px;
color: white;
background-color: #0bebf6;
border: 7px dotted white;
padding: 10px;
margin-right: 20px;
margin-top: 5px;
display: inline-block;
float: right;
}
<div class="mycontainer">
<div class="square">Box 1</div>
<div class="square">Box 2</div>
</div>
.mycontainer {
width: 600px;
border: 1px solid red;
}
.square {
width: 150px;
height: 150px;
color: white;
background-color: #0bebf6;
border: 7px dotted white;
padding: 10px;
margin-right: 20px;
margin-top: 5px;
display: inline-block;
float: right;
}
Theme 25 recipe
@media only screen and (min-width: 768px) {
.my-form div.fieldContainer {
float: left;
clear: left;
}
.my-form .uButton {
float: left;
margin-left: 8px;
}
}
body {overflow: auto;}
label {font-weight: bold;}
.alert {color: red;}
<p class="warning">Value required for name field.</p>
<p class="alert">Value required for name field.</p>
Value required for name field.
Value required for name field.
#P5_NOTES {outline: red solid 2px;}
#reportRegion {padding: 5px;}
<textarea name="p_t09" rows="5" cols="50" maxlength="4000" id="P5_NOTES" class="textarea">
</textarea>
<div id="reportRegion" class="stdReport"></div>
inline style |
ID |
class |
elements |
<section class="uRegion" style="width: 500px;">
#BODY#
</section>
<p style="padding-top: 5px; color: red; font-style: italic;">
lorem ipsum
</p>
<style type="text/css">
label[for^=P11_ADDRESS], label[for=P11_CITY], label[for=P11_STATE], label[for=P11_ZIP], label[for=P11_NOTES] { outline: #ff5e99 dashed 2px; } </style>
<link rel="stylesheet" href="/custom/c.css" type="text/css" />
<link rel="stylesheet" href="#APP_IMAGES#c.css" type="text/css" />
<link rel="stylesheet" href="#WORKSPACE_IMAGES#c.css" type="text/css" />
#WORKSPACE_IMAGES#c.css
wwv_flow_file_mgr.get_file?p_security_group_id=2616712683471253&p_fname=c.css
Every element of web design is a rectangular box
<div class="mycontainer">
<div class="box">Box 1</div>
<div class="box">Box 2</div>
</div>
.mycontainer {
width: 600px;
border: 1px solid red;
}
.box {
width: 200px;
height: 150px;
color: white;
background-color: #0bebf6;
border: 7px dotted white;
padding: 10px;
margin-right: 20px;
margin-top: 5px;
display: inline-block;
}
padding: 5px 5px 5px 5px;
padding: 5px;
padding: 5px 7px;
padding-top: 5px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 5px;
padding: 0 5px 0 0;
padding-right: 5px;
The position property specifies the type of positioning method used for an element.
Elements render in order as they appear in the document flow
The element is positioned relative to its first positioned (not static) ancestor element
We can place any page element exactly where we want
It will be relative to the next parent element with relative (or absolute) positioning.
If none exists then it goes all the way back to the <html> element
Elements with this positioning are removed from the flow of elements on the page
They don't affect other elements and they are not affected by other elements.
Caution: If overused it may limit the flexibility of your site.
The element is positioned relative to its normal position.
What it really means is "relative to itself"
If no attributes are set (top, left, bottom or right) it will have no effect on positioning at all.
Limits the scope of absolutely positioned child elements
We'll have the ability to use z-index on that element
you need a position absolute or relative
for z-index to take effect
If the element is position: static (default) z-index has no effect.
element is positioned relative to the viewport, or the browser window itself.
The viewport doesn't change when the window is scrolled
How to handle content that extends the size of a box?
You will get both horizontal and vertical scrollbars whether you need them or not.
Chrome handles the scrollbars differently
scrollbars only show when needed.
td.data[headers="MESSAGE"],
td.dataAlt[headers="MESSAGE"] {
max-width: 180px;
white-space: pre-line;
word-wrap: break-word;
}
slides rimblas.com/slides/rmoug14
sample app: http://s.rimbl.as/PrpV
app download: http://s.rimbl.as/PqnD
reveal.js https://github.com/hakimel/reveal.js
Scott Spendolini & Jorge Rimblas