I display some text but not all of the text is shown so I want to make the background larger so that all the text displays. Right now the lower part of the "g" is outside the clipping area:
My HTML is
<h2><strong>{% trans %}Why Bnano is{% endtrans %}</strong><span>{% trans %}RIGHT FOR YOU{% endtrans %}</span></h2>
And my CSS is
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, hr, button {margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align: baseline; background:none;}
table, tbody, tfoot, thead, tr, th, td {padding:4px;vertical-align:top;}
ol, ul {list-style:none;}
h1, h2, h3, h4, h5, h6, li {line-height:100%;}
blockquote, q {quotes:none;}
q:before,
q:after {content: '';}
table {border-collapse:collapse; border-spacing:0;}
input, textarea, select{
font:11px Arial, Helvetica, sans-serif;
vertical-align:middle;
margin:0;
padding:0;
}
form, fieldset{border-style:none;}
html {height:100%;}
body {
min-width:1004px;
color:#404344;
height:100%;
font:13px/16px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
background:#fff;
margin: 0 1px 1px;
}
img{border-style:none;}
a{
text-decoration:none;
color:#000000;
}
a:focus {outline:none;}
a:hover{text-decoration:underline;}
/* wrapper */
#wrapper{
width:100%;
min-height:100%;
}
* html #wrapper {height:100%;}
/* header */
#header {
width:100%;
background:#1596c3 url(/welcome/static/images/bg-header.png) repeat-x;
}
#header:after {
display:block;
clear:both;
content:"";
}
/* header-area */
.header-area {
margin:0 auto;
width:948px;
padding:0 23px;
}
/* top-panel*/
.top-panel {
overflow:hidden;
height:36px;
padding:6px 0 0 4px;
margin:0 0 19px;
position:relative;
z-index:9999999 !important;
}
/* search-form */
.search-form {
float:right;
margin:0 10px 0 15px;
}
.search-form form {float:left;}
.top-panel .text {
float:left;
padding:6px 13px 7px 13px;
margin:0 5px 0 0;
background:url(http://bnano-www.appspot.com/welcome/static/images/bg-text.gif) no-repeat;
}
.top-panel .text input {
font:13px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
color:#8cc0d3;
float:left;
width:157px;
margin:0;
padding:0 -2px 0 0;
border:0;
background:none;
}
.top-panel .text input:focus {outline:none;}
.search-form .search {
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/btn-search.gif) no-repeat;
width:26px;
height:27px;
overflow:hidden;
text-indent:-9999px;
line-height:0;
font-size:0;
cursor:pointer;
border:0;
}
/* email-form */
.email-form {
float:left;
width:214px;
}
.email-form form {float:left;}
.email-form .go {
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/btn-go.gif) no-repeat;
width:26px;
height:27px;
overflow:hidden;
text-indent:-9999px;
line-height:0;
font-size:0;
cursor:pointer;
border:0;
}
/* links */
.top-panel .links {
float:right;
padding:9px 0 0;
width:410px;
}
.top-panel .links .title {
float:left;
color:#fdfdfd;
font-weight:normal;
font-size:13px;
text-transform:uppercase;
padding-top:1px;
}
.top-panel .links .title .cufon {
float:left;
margin:0 !important;
}
.top-panel .links ul {
float:left;
position:relative;
margin:-5px 0 0;
}
.top-panel .links li {
float:left;
padding:0 0 0 9px;
}
.top-panel .links li img {display:block;}
/* header-info */
.header-info {
padding:0 0 95px 17px;
position:relative;
z-index:99999 !important;
}
/* logo */
.logo {
float:left;
background:url(/welcome/static/images/logo-opaque1.png) no-repeat;
width:290px;
height:176px;
text-indent:-9999px;
margin:0 0 0 -15px;
position:relative;
z-index: 999999 !important;
}
.logo a {
display:block;
height:100%;
}
/* nav */
#nav {
float:right;
padding:20px 0 0;
}
#nav li {
float:left;
margin:0 3px 0 3px;
font-size:16px;
line-height:17px;
}
#nav li a {
float:left;
padding:0 5px 0 0;
color:#a9cfdd;
cursor:pointer;
}
#nav li a span {
float:left;
padding:5px 6px 4px 11px;
}
#nav li.active a,
#nav li a:hover {
text-decoration:none;
color:#f6f6f6;
background:url(http://bnano-www.appspot.com/welcome/static/images/btn-active.gif) no-repeat 100% -23px;
}
#nav li.active a span,
#nav li a:hover span {
background:url(http://bnano-www.appspot.com/welcome/static/images/btn-active.gif) no-repeat;
}
#nav li a .cufon {
float:left;
margin:0 !important;
}
/* info-area */
#header .info-area {
height:398px;
width:900px;
background:none !important;
padding:15px 2px 0 13px;
margin-top:-148px;
margin-left:25px;
}
#header .info-area .txt {
float:left;
color:#f6f8f9;
font-size:19px;
margin-top:100px;
}
#header .info-area .txt .cufon {
float:left;
margin:0 !important;
}
#header .info-area .txt .text .cufon {margin-top:1px !important;}
#header .info-area .title {
color:#a9cfdd;
font-size:48px;
position:absolute;
line-height:51px;
padding-top:55px;
width:550px;
}
#header .info-area .title span {
font-size:35px;
line-height:36px;
display:block;
overflow:hidden;
width:100%;
height:32px !important;
padding-top:1px;
}
#header .info-area .title em {
font-style:normal;
display:block;
overflow:hidden;
width:100%;
height:53px !important;
}
#header .info-area .desc {
font-family: "Arial Narrow", sans-serif;
line-height:20px;
margin: 8px 0 25px 3px;
font-size:19px;
letter-spacing:2px;
position:absolute;
z-index:9999 !important;
padding-top:130px;
width:550px;
}
#header .info-area .txt .text {
display:block;
overflow:hidden;
height:1%;
padding:0 0 5px;
}
#header .info-area .txt .text1 {
background:url(http://bnano-www.appspot.com/welcome/static/images/ico03.gif) no-repeat 2px 9px;
padding:26px 0 27px 114px;
}
#header .info-area .img {
float:right;
position:relative;
margin-left:500px;
margin-top:-100px;
}
#header .info-area .more {
overflow:hidden;
height:25px;
letter-spacing:1px !important;
margin-top:23px;
margin-left:-3px;
}
#header .info-area .more a {
color:#f6f8f9;
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet05.gif) no-repeat 5px 3px;
padding:0 0 0 19px;
font-size:18px;
}
#header .info-area .more a span {
float:left;
margin-left:-2px;
padding-bottom:0;
}
#header .info-area .more a:hover {text-decoration:none;}
#header .info-area .more a:hover span {
border-bottom:1px solid #f6f8f9;
padding:0;
}
/* main */
#main {
overflow:hidden;
width:100%;
padding:58px 0 122px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bg-main-area.gif) repeat-x;
}
/* onecolumn */
#onecolumn {
margin:0 auto;
overflow:hidden;
width:1004px;
position:relative;
}
#onecolumn ul {
margin:10px 0 10px 25px;
}
#onecolumn li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 12px 15px;
line-height:16px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet03.gif) no-repeat 2px 6px;
}
#onecolumn h2 {
color:#062f3d;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 8px 0;
}
#onecolumn h2 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#onecolumn h2 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
padding-bottom:15px;
}
#onecolumn h2 .cufon {
float:left;
margin:0 !important;
}
#onecolumn h3 {
color:#676a6b;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 10px;
}
#onecolumn h3 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#onecolumn h3 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
margin:-3px 0 0;
}
#onecolumn h3 .cufon {
float:left;
margin:0 !important;
}
#onecolumn .content {
padding:0 48px 10px 48px;
}
#onecolumn content p {margin:0 0 16px;}
/* twocolumns */
#twocolumns {
margin:0 auto;
overflow:hidden;
width:1004px;
position:relative;
}
#twocolumns h2 {
color:#062f3d;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 14px 0;
}
#twocolumns h2 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#twocolumns h2 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
margin:-3px 0 0;
font-size:30px;
}
#twocolumns h2 .cufon {
float:left;
margin:0 !important;
}
#twocolumns h3 {
color:#062f3d;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 10px;
}
#twocolumns h3 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#twocolumns h3 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
margin:-3px 0 0;
font-size:26px;
}
#twocolumns h3 .cufon {
float:left;
margin:0 !important;
}
#twocolumns h4 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
font-size:16px;
margin: 10px 0 17px 2px;
}
/* content */
#content {
position:relative;
float:left;
width:596px;
padding:0 20px 10px 48px;
z-index: 99999 !important;
}
#content p {
margin:0 2px 16px;
line-height:18px;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size:13px;
}
#content p img {
padding:10px;
}
#content .more {
overflow:hidden;
height:1%;
padding:0 0 16px 4px;
font-size:14px;
}
#content .more a {
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet01.gif) no-repeat 0 55%;
padding:0 0 0 13px;
color:#404344;
}
#content .more a:hover {
color:#138db7;
}
/* video-block */
#content .video-block {
width:616px;
margin:0 -20px 0 -19px;
position:relative;
padding:0 4px 0 15px;
background:#d4dadb url(http://bnano-www.appspot.com/welcome/static/images/bg-video-block.gif) repeat-x;
}
#content .video-block:after {
display:block;
clear:both;
content:"";
}
#content .video-block .heading {
background:url(http://bnano-www.appspot.com/welcome/static/images/bg-heading.gif) no-repeat;
width:176px;
height:51px;
position:relative;
margin:0 0 4px -7px;
padding:25px 0 0 15px;
}
#content .video-block .info-col {
float:left;
width:271px;
padding:0 0 0 7px;
margin:-6px 0 0;
position:relative;
}
#content .video-block h3 {
overflow:hidden;
width:100%;
padding:3px 0 0;
margin:0;
}
#twocolumns .video-block strong {
width:auto;
float:left;
display:inline;
font-size:18px;
color:#fff;
}
#twocolumns .video-block span{
width:auto;
float:left;
display:inline;
font-size:25px;
color:#fff;
}
/* list */
#content .video-block .list {height:1%;}
#content .video-block .list li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 13px 13px;
line-height:14px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet02.gif) no-repeat 1px 4px;
}
#content .video-block .list li h4 {
font-size:13px;
line-height:15px;
font-weight:normal;
color:#967723;
}
#content .video-block .list li h4 a {color:#967723;}
#content .video-block .list li p {margin:0;}
#content .video-block .video {
float:right;
margin:0 0 -8px;
padding:30px 0 0;
position:relative;
}
#content .video-block .video img {display:block;}
#content blockquote {
font: 14px/22px normal helvetica, sans-serif;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 50px;
padding-left: 15px;
border-left: 3px solid #ccc;
}
#content blockquote p {margin:0;}
#content blockquote cite {font-style:normal;}
/* blocks */
#content .blocks {
overflow:hidden;
width:582px;
}
#content .blocks h3 {
font-size:14px;
line-height:18px;
font-weight:normal;
color:#4499b7;
margin:0 0 13px;
}
#content .block-holder {
width:590px;
overflow:hidden;
margin:0 -8px 5px 0;
}
#content .blocks .block {
width:290px;
margin:0 4px 0 0;
padding:18px 0 10px;
float:left;
color:#ba9d50;
font-size:11px;
line-height:13px;
background:#dcddde;
}
#content .blocks .block .img {
overflow:hidden;
width:100%;
text-align:center;
margin:0 0 18px;
}
#content .blocks .block .img img {vertical-align:top;}
#content .blocks .block p {
text-align:center;
margin:0;
}
#content .blocks .block p a {color:#ba9d50;}
#content ul {
margin:10px 0 10px 25px;
}
#content li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 12px 15px;
line-height:16px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet03.gif) no-repeat 2px 6px;
}
/* sidebar */
#sidebar {
float:right;
position:relative;
width:315px;
padding:0 3px 0 10px;
overflow:hidden;
z-index: 99999 !important;
}
#sidebar p {
margin-left:2px;
}
/* news-list */
#sidebar .news-list {
width:300px;
padding:0 15px 19px 0;
}
#sidebar .news-list li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 12px 15px;
line-height:14px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet03.gif) no-repeat 2px 6px;
}
#sidebar .news-list li h4 {
font-size:13px;
line-height:15px;
font-weight:normal;
margin:0 0 1px;
}
/* news-list1 */
#sidebar .news-list1 {
padding-right:0;
padding-bottom:14px;
width:300px;
}
#sidebar .news-list1 li {
background-position:3px 6px;
padding-left:17px;
}
#sidebar .news-list1 h4 {
color:#967723;
position:relative;
word-spacing:-1px;
}
#sidebar .news-list1 h4 a {color:#967723;}
/* #sidebar .news-list1 h4 a {color:#967723;} */
/* info-list */
#sidebar .info-list {
width:269px;
padding:1px 0 0;
}
#sidebar .info-list li {
overflow:hidden;
height:1%;
font-size:25px;
line-height:27px;
margin:0 0 2px;
vertical-align:top;
background:url(http://bnano-www.appspot.com/welcome/static/images/bg-info-list.gif) no-repeat;
}
#sidebar .info-list li a {
float:left;
padding:9px 10px 4px 41px;
color:#138db7;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet04.gif) no-repeat 13px 50%;
}
#sidebar .info-list li a .cufon {
float:left;
margin:0 !important;
}
#sidebar .info-list li a:hover {text-decoration:none;}
#sidebar .info-list li a span {
float:left;
margin:0 2px 0 0;
}
#sidebar .info-list li a strong {float:left;}
#sidebar .view {
display:block;
background:url(http://bnano-www.appspot.com/assets/files/img/btn/online-store.png) no-repeat;
color:#fff;
font-size:30px;
width:191px;
height:75px;
margin:0 0 0 -8px;
padding:22px 115px 0 18px;
}
#sidebar .view span {
font-size:30px;
overflow:hidden;
width:100%;
display:block;
}
#sidebar .view strong {
overflow:hidden;
width:100%;
display:block;
}
#sidebar .view .cufon {
float:left;
margin:0 !important;
}
#sidebar .view:hover {text-decoration:none;}
/* footer */
#footer {
height:206px;
position:relative;
overflow:hidden;
margin:-106px 0 0;
font-size:11px;
line-height:14px;
color:#9ddbf1;
background:#1494c1 url(http://bnano-www.appspot.com/welcome/static/images/bg-footer.gif) repeat-x;
}
/* footer-area */
.footer-area {
margin:0 auto;
width:948px;
padding:52px 1px 0;
}
.footer-area p a {color:#000000;}
#footer .copyright {
float:left;
width:390px;
margin:5px 30px 0 0;
}
#footer .copyright p {text-align:right;}
#footer .logo1 {
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/logo01.png) no-repeat;
width:130px;
height:102px;
overflow:hidden;
text-indent:-9999px;
position:relative;
margin:-52px 30px 0 0;
}
#footer .logo1 a {
display:block;
height:100%;
}
/* info */
#footer .info {
float:left;
width:350px;
position:relative;
margin:-9px 0 0;
}
#sidebar form {
width : 295px;
height : auto;
text-align : left;
margin-top : 10px;
margin-bottom:25px;
border: none;
}
#sidebar input {
width : 240px;
height:20px;
background : url(http://bnano-www.appspot.com/welcome/static/images/bg-input.png) no-repeat scroll 0% 0%;
color : #666;
font-size : 14px;
margin-bottom : 6px;
padding : 10px 10px 8px 10px;
border:0;
}
#sidebar textarea {
width : 265px;
height : 105px;
background : url(http://bnano-www.appspot.com/welcome/static/images/textarea-b.png) no-repeat scroll 0% 0%;
padding : 10px 30px 10px 10px;
font-size : 14px;
color : #666;
margin-bottom : 1px;
border:0;
}
#sidebar .button {
background : url(http://bnano-www.appspot.com/welcome/static/images/button.png) no-repeat 0% 0%;
width : 104px;
height : 30px;
color : #fff;
font-size : 13px;
cursor:pointer;
margin-top:10px;
margin-left:180px;
padding : 5px 0 5px 0;
border:0;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
#sidebar .invalidValue {
color:#c21313;
}
Can you tell me how I increase the drawing area?
Thanks
Try to increase the line-height of your <h2>!
Like Jannis M said, it is quite dirty... maybe you can show us more of the html, so it would be easier to understand and to help...
You can add /increase padding to your <h2>.
The issue cannot be observed using the code posted. Instead of a short fragment of server-side code, you should post the actual HTML code, which is probably something like
<h2><strong>Varför Bnano är</strong><span>rätt för dig</span></h2>
presumably inside an element with id=onecolumn. But what else? Even in this setting, the rendering is different.
In any case, the issue is most probably caused by setting an unsuitable line-height value on an element. For fonts like Lucida Sans Unicode and Lucida Grande, the value should be around 1.3 or a little larger – now one of the CSS rules sets the value to 100%, which means the font size of the parent element, and this is surely too little for h2.
The text is cut because you have set the parent container size and set overflow: hidden; Inspect the dom and see what's the parent's element height; You have not given the full html so i can tell you where is the exact problem.
Start with:
onecolumn
Related
I have an application based on the following css.The page is designed to display employee database and their task records.I need the header always at the bottom of the page even the content is less/more in number.I cant fix it.Once when I fix for less content it gets displayed above the content when more contents are added.I need help to fix this...
* { padding:0; margin:0; outline:0; }
body {
background:#f9ebae;
font-family: Verdana, sans-serif;
font-size:11px;
line-height:14px;
color:#5e5e5e;
margin:0;
padding:0;
height:100%;
}
input, textarea, select { font-family: Verdana, sans-serif; font-size:13px; }
textarea { overflow:hidden; }
.field { border:solid 1px #d3cfc7; background:#fff; padding:5px; }
.small-field { border:solid 1px #d3cfc7; background:#fff; padding:3px 1px; font-size:11px; }
.checkbox { width:13px; height:13px; vertical-align:top; position:relative; top:2px; }
.button { background:#eee url(images/button.gif) repeat-x 0 0; border:solid 1px #b1a874; color:#7f7f7f; font-size:11px; padding:2px 6px 2px 6px; cursor:pointer; line-height:14px !important; }
.button:hover { color:#333; border-color:#857b42; }
.field:focus { color:#000; border-color:#857b42;}
a img { border:0; }
a { color:#ba4c32; text-decoration: underline; cursor:pointer; }
a:hover { color:#8d341f; text-decoration: none;}
.left, .alignleft { float:left; display:inline; }
.right, .alignright { float:right; display:inline; }
.rights, .alignright { float:right; display:inline; }
.cl { font-size:0; line-height:0; clear:both; display:block; height:0; }
.al { text-align: left; }
.ar { text-align: right; }
.ac { text-align: center !important; }
h1{ font-size:22px; font-family:Georgia, "Times New Roman", Times, serif; line-height:24px; color:#fff; font-weight: normal;}
h1 a{ color:#fff; text-decoration: none; }
h11{ font-size:32px; font-family:"Times New Roman", Times, serif; line-height:30px; color:#fff; font-weight: normal;}
h11 a{ color:#fff; text-decoration: none; }
h2 { font-size:15px; font-weight: normal; }
h2 a{ text-decoration: none; }
h22 { font-size:20px; font-family:"Times New Roman", Times, serif; font-weight: normal; }
h22 a{ text-decoration: none; }
h3 { font-size:12px; color:#3333FF; line-height:14px; font-weight: normal; }
h3 a{ text-decoration: none; }
.shell { ; margin:0; auto; }
#header { height:89px; background:url(images/header.gif); white-space:nowrap; }
#header h1{ float:left; display:inline; padding-top:12px; }
#top-navigation { float:right; white-space:nowrap; color:#fff; padding-top:15px; }
#top-navigation a{ color:#fff; }
#top-navigation span{ color:#dca598; }
#top { height:53px;}
#navigation { height:36px;}
#navigation ul{ list-style-type: none;}
#navigation ul li{ float:left; display:inline; margin-right:2px;}
#navigation ul li a,
#navigation ul li a span { float:left; height:36px; background:url(images/tab.gif) no-repeat 0 0; padding:0 0 0 15px;}
#navigation ul li a span { background-position:right 0; padding:0 15px 0 0;}
#navigation ul li a { line-height:36px; color:#907525; text-decoration: none; }
#navigation ul li a.active,
#navigation ul li a:hover { background-position:0 bottom;}
#navigation ul li a.active span,
#navigation ul li a:hover span{ background-position:right bottom; }
#navigation ul li a.active { font-size:12px; font-weight: bold; color:#887e42; }
#wrapper {
min-height:100%;
height: auto !important;
height: 100%;
margin: 0 auto -4em;
}
#wrapper1 {
min-height:200%;
position:relative;
}
#container { padding:20px 0; padding-bottom:44px;}
#container10 { padding:20px 0; padding-bottom:44px; min-height:100%;}
.small-nav { color:#978b48; padding-bottom:20px; }
.small-nav a{ color:#6f6636; }
#main { overflow:auto; padding-bottom: 44px; }
#content { float:left; width:98%; padding:0 0 44px 2px; }
#contents { float:left; width:auto; padding:0 0 0 300px; }
#sidebar { float:right; width:225px; }
.table {}
.table th{ background:#fffdfa url(images/th.gif) repeat-x 0 0; color:#818181; text-align: left; padding:7px 10px; border-bottom:solid 1px #d2d1cb;}
.table td{ background:#fbfcfc; border-bottom:solid 1px #e0e0e0; padding:8px 10px; }
.table tr.odd td{ background:#f8f8f8; }
.table tr:hover td{ background:#fff9e1; }
.table a.ico{ }
.box { background:#fbfcfc; height:auto; width:auto; padding:1px; margin-bottom:20px; }
.box-head { background:#ba4c32; height:32px; color:#fff; padding: 0 10px; line-height:32px; white-space:nowrap; border-bottom:solid 1px #fff; }
.box-head .rights{ padding:10px 0 10px 1px; line-height:13px;}
.box-head .rights label,
.box-head .rights input { float:left; }
.box-head .rights label { padding:4px 0 0 0;}
.box-head .rights input { margin-left:5px;}
.box-head .right{ padding:5px 0 10px 1px; line-height:13px; }
.box-head .right label,
.box-head .right input { float:left; }
.box-head .right label { padding:4px 0 0 0;}
.box-head .right input { margin-left:5px;}
.pagging { height:20px; padding:8px 0px; line-height:19px; color:#949494; }
.pagging a{ background:url(images/pagging.gif) repeat-x 0 0; height:20px; float:left; padding:0 8px; border:solid 1px #d5d5d5; text-decoration: none; color:#949494; margin-left:5px; }
.pagging a:hover { border-color:#8c3521; background:#ba4c32; color:#fff; }
.pagging span{ float:left; margin-left:5px; padding-top:2px; }
a.ico { color:#9d9c9a; font-size:10px; text-decoration: none; padding:0 0 0 14px; background-repeat:no-repeat; background-position:0 0; }
a.ico:hover { color:#333;}
a.del { background-image:url(images/delete.gif); margin-left:10px;}
a.edit { background-image:url(images/ed.gif); margin-left:10px;}
a.status { background-image:url(images/i.gif); margin-left:10px;}
.form { padding:15px 10px 5px 10px; }
.form label{ display:block; font-weight: bold; font-size:13px; padding-bottom:4px; }
.form label span{ color:#999; font-weight: normal;}
.form .field { display:block; }
.form .inline-field .field { display:inline;}
.form .req { font-size:13px; float:right; white-space:nowrap; color:#999; }
.form p{ padding-bottom:15px; }
.size1 { width:716px; }
.size2 { width:80px; }
.size3 { width:120px; }
textarea.size1 { height:180px; }
.buttons { text-align: right; padding:10px; background:#eee; border-top:solid 1px #e0e0e0; }
.buttons .button{ margin-left:3px;}
.box-content { padding:10px; }
.sort { border-top:solid 1px #e0e0e0; padding-top:10px; margin-top:15px; }
.sort label{ display:block; font-weight: bold;}
.sort .field{ display:block; margin-top:5px; }
.sort select.field{ width:203px; }
.box-content p { padding-top:10px; }
.select-all{}
.select-all label{ text-decoration: underline; padding-left:4px; }
.add-button,
.add-button span { float:left; height:26px; background:url(images/add-button.gif) no-repeat 0 0; padding:0 0 0 28px; }
.add-button span { background-position:right 0; padding:0 10px 0 0; }
.add-button { font-weight: bold; font-size:12px; color:#747474; text-decoration: none; line-height:26px; }
.add-button:hover { color:#333;}
#footer { height:44px; margin-top: -44px; background:url(images/footer.gif); line-height:44px; width:100%; color:#fff; position:relative; bottom:0; left:0; clear:both; }
#footer a{ color:#fff;}
#footer, #push {
height: 4em;
}
#footer, #push {
clear: both;
}
.msg { position:relative; padding-right:35px; margin-bottom:10px; }
.msg p{ padding:9px 10px 9px 40px; font-size:12px; background-repeat:no-repeat; background-position:10px 5px;}
.msg a.close{ font-size:0; line-height:0; position:absolute; top:0; right:0; width:34px; height:34px; background:url(images/close.gif); text-indent: -4000px;}
.msg-ok p{ background-color:#fffac2; border:solid 1px #dbd6a2; color:#5e5c40; background-image:url(images/ok.gif); }
.msg-error p{ background-color:#f3c598; border:solid 1px #e8b084; color:#ba4c32; background-image:url(images/msg-error.gif); }
/*** CSS3 ***/
.box { -moz-border-radius:5px; -webkit-border-radius:5px; -moz-box-shadow: 0 0 6px #978f6c; -webkit-box-shadow: 0 0 6px #978f6c;}
.box-head { -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; -webkit-border-top-left-radius:5px; -webkit-border-top-right-radius:5px; }
.field, .button { -moz-border-radius:4px; -webkit-border-radius:4px; }
.small-field, .button, .pagging a { -moz-border-radius:3px; -webkit-border-radius:3px; }
.msg p { -moz-border-radius:6px; -webkit-border-radius:6px; }
.button { -moz-box-shadow: 0 0 2px #978f6c; -webkit-box-shadow: 0 0 2px #978f6c;}
.rrshow{
display:none;
}
<!--Print query css-->
#media print
{
.print-hidden {
display: none;
}
a {
display: none;
}
}
Try this to position it at the bottom
position:absolute;
bottom:0;
I am having some trouble with the above and could really use some help!
One of the pages where the menu exists is:
https://googledrive.com/host/0By60ZMFepOvCYWNKSzlxOVJSYTA
and the CSS:
/* Global properties ======================================================== */
html, body {width:100%; padding:0; margin:0;}
sup {
vertical-align: top;
font-size:60%;
}
body {
color:#6D266A;
background-color: #FFF3CC;
font-family: "Futura-Book";
src: url('Futura-Book.eot');
src: url('Futura-Book.eot?#iefix') format('embedded-opentype'),
url('Futura-Book.woff') format('woff'),
url('Futura-Book.ttf') format('truetype'),
url('Futura-Book.svg#futura-bookbook') format('svg');
}
.ic {border:0;float:right;background:#FFF3CC;color:#f00;width:50%;line-height:10px;font-size:10px;margin:-220% 0 0 0;overflow:hidden;padding:0}
.mob {width:100%;}
/***********************************************************************/
a {text-decoration:none; cursor:pointer;text-decoration:none; }
a:hover {text-decoration:none;}
.button {background:url(../images/button.png) 0 0 no-repeat; color:#000; font-size:24px; line-height:30px; display:inline-block; padding: 2px 0 5px 43px;}
.button:hover {color:#579700;}
.link {color:#D2A973; text-decoration:none; }
.link:hover {text-decoration:underline;}
.link-2 {font-family: 'Futura-Book', sans-serif; font-weight:300; font-style:italic; color:#D2A973; font-size:20px; line-height:25px; text-decoration:none; }
.link-2:hover {text-decoration:underline;}
.valentines{font-family: 'Futura-Book', sans-serif; font-weight:300; font-style:italic; color:#D2A973; font-size:20px; line-height:25px; text-decoration:none; }
.clr-1 { color:#D2A973;}
.text-1 {font-weight:normal; color:#000; font-size:60px; line-height:72px;}
.text-1 strong {font-weight:normal; margin-top:-32px; display:block;}
.text-2 {font-family: 'Futura-Book', sans-serif; font-weight:300; font-style:italic; color:#6D266A; font-size:21px; line-height:35px;}
.text-3 {font-weight:normal; color:#6D266A; font-size:50px; line-height:60px;}
.text-3 span {color:#D2A973;}
.text-4 {font-family: 'Futura-Book', sans-serif; font-weight:300; font-style:italic; color:#6D266A; font-size:30px; line-height:36px; letter-spacing:-1px;}
.text-5 {font-weight:normal; color:#D2A973; font-size:50px; line-height:60px;}
.text-5 span {vertical-align: text-top; font-size:50%;}
h2 { font-size:31px; line-height:40px; color:#000; font-weight:normal; }
ul {margin:0; padding:0;list-style-image:none;}
ul.list-1 li {padding:0px 0 0px 25px; line-height:25px; background:url(../images/marker.png) 0 5px no-repeat;}
ul.list-1 li a {color:#6D266A;}
ul.list-1 li a:hover {color:#457c00;}
/******************************************************************/
.clear {clear:both; line-height:0; font-size:0; width:100%;}
.wrapper {width:100%; overflow:hidden; position:relative}
.wrap {overflow:hidden; position:relative}
.extra-wrap {overflow:hidden;}
.fleft {float:left;}
.fright {float:right;}
.img-indent {float:left; margin:4px 18px 0px 0;}
.line-height {line-height:18px;}
.last {margin-right:0px !important; padding-right:0px !important;}
.top {padding-top:37px;}
.top-1 {margin-top:30px;}
.top-2 {margin-top:10px;}
.top-3 {margin-top:12px;}
.top-4 {margin-top:14px;}
.top-5 {margin-top:8px !important;}
.top-6 {margin-top:13px;}
.top-7 {margin-top:34px;}
.left-1 { margin-left:13px;}
.right-1 {margin-right:40px;}
.bot-0 {padding-bottom:0 !important; margin-bottom:0 !important;}
.pad-1 {margin-top:44px; margin-bottom:33px;}
.p1 {padding-bottom:25px;}
.p2 {padding-bottom:13px;}
.p3 {padding-bottom:10px;}
.p4 {padding-bottom:20px;}
.p4 span {font-weight:bold;}
.p5 {padding-bottom:12px;}
/*********************************header*************************************/
header{ width:100%; background:url(../images/header-bg.jpg) 0 0 repeat;}
header>div+div {width:100%; background:url(../images/header-bg-shadow.png) 0 bottom repeat-x; padding-bottom:17px;}
header>div+div>div {width:960px; margin:0 auto; }
h1 {display:inline-block; z-index:1111; margin:16px 0px 0 10px; position:relative; float:left;}
nav {display:inline-block; z-index:1111; position:relative; float:right;}
ul.menu {margin:28px 10px 0px 0px; display:inline-block;}
ul.menu li {float:left; line-height:30px; margin:0px 0px 0px 48px;}
ul.menu li:hover, ul.menu li.current {}
ul.menu li a {font-size:20px; line-height:30px; color:#FFF3CC; display:inline-block; }
ul.menu li a:hover , ul.menu li.current a { color:#D2A973; }
/*********************************content*************************************/
#content {width:100%;padding:0px 0px 48px 0; background:#FFF3CC;}
#mob-content {width:100%;padding:0px 0px 48px 0; background:#FFF3CC;}
.img-border {border:#fff 8px solid; padding-bottom: 10px;}
.box-1 {overflow:hidden; padding:40px 0 34px;}
.box-1 img {float:left; margin-top:-3px;}
.box-1 h2 {margin-bottom:8px;}
.box-2 {background: url(../images/line-1.gif) 0 0 repeat-x #6D266B;}
.box-2>div {background: url(../images/line-1.gif) 0 bottom repeat-x; padding:15px 0 36px 0; text-align:center;}
.box-2>div p.text-4 {margin-top:-7px;}
.box-3 {overflow:hidden; padding:12px 0 0 0;}
.box-3>div { width:180px; float:left; margin-right:25px;}
.box-3>div a.link-2 {display:inline-block; margin:15px 0 6px 0;}
.box-4 {}
.date {overflow:hidden;}
.date strong {display:inline-block; background:url(../images/date.png) 0 0 no-repeat; width:51px; height:53px; float:left; margin-right:5px;font-weight:normal; color:#000; font-size:40px; line-height:48px; text-align:center;}
.date span {font-family: 'Futura-Book', sans-serif; font-weight:300; font-style:italic; color:#000; font-size:20px; line-height:24px; display:inline-block; overflow:hidden; margin-top:21px;}
.box-5 {overflow:hidden; padding-top:8px;}
.box-5 img {margin:4px 10px 0 0;}
.box-6 {overflow:hidden; margin-top:13px;}
.box-6>div { width:290px; float:left; margin-right:35px;}
.box-6 a.link-2 {display:inline-block; margin-bottom:3px;}
.box-7 {overflow:hidden; margin-top:10px;}
.box-7>div { width:290px; float:left; margin-right:35px;}
.box-7 a.link-2 {display:inline-block; margin-bottom:3px;}
/****************************footer************************/
footer {width:950px; overflow:hidden; margin:0 auto; padding:0px 0px 20px 0; }
footer p {float:left; text-align:center; width:580px;}
.soc-icons {overflow:hidden; float:right; margin:8px 73px 0 0;}
.soc-icons span {display:inline-block; float:left; color:#000; font-size:20px; line-height:27px; margin-right:17px;}
.soc-icons a {display:inline-block; float:left; margin-right:19px;}
.soc-icons a:hover img {opacity:0.7;}
/**********************form**********************/
.map {width:550px; height:450px;}
#form { margin: 12px 0 0px 0px; width:300px; }
#form input {border:#fff 1px solid; background:#fff;font: 13px Arial, Helvetica, sans-serif;color:#b6b6b6; font-style:italic; padding:5px 9px 6px 18px;outline: medium none;width: 300px; float:left;}
#form textarea {border:#fff 1px solid; background:#fff;font: 13px Arial, Helvetica, sans-serif;color:#b6b6b6; font-style:italic; height: 268px;outline: medium none;overflow: auto;padding: 6px 0px 0px 18px;width: 281px;resize:none;margin:0px 0 0 0;float:left;}
#form label {position:relative;overflow:hidden;display: block;min-height:35px;}
.btns {text-align:left; padding-top:15px;}
I need to add a drop menu with 3 links under the Treatments link on the main menu and cannot seem to get it to play ball.
Any help would be greatly appreciated!
Sam
if I understand you correctly, the following should work:
HTML:
<body>
<ul>
<li><a>level1</a>
<ul>
<li><a>level2</a></li>
</ul>
</li>
<li><a>level1</a></li>
</ul>
</body>
CSS:
ul {
position:relative;
list-style:none;
}
ul li a {
display:inline-block;
float:left;
width:100px;
height:50px;
background:#eaeaea;
text-align:center;
vertical-align:middle;
line-height:50px;
}
ul ul {
display:none;
position:absolute;
}
ul li:hover > ul {
display:block;
top:50px;
}
ul ul li a {
background:#a7a7a7;
}
Here is working jsfiddle: http://jsfiddle.net/a9NVN/32/
You can format the sub-menus css however you'd like, independently of the parent element.
Hope I've answered your question!
I want to add options to select language somewhere close to the facebook like button but I can't fit it in:
The HTML code is
<div style="margin-top:3px;margin-left:15px;float:right;">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://{{request.host}}&layout=button_count"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
</div>
<div class="links">
DISTRIBUTOR LOG IN | JOIN
<strong class="title">FOLLOW US</strong>
<ul>
<li><img class="png" src="/welcome/static/images/facebook.png" alt="Come join us on Facebook!" /></li>
<li><img class="png" src="/welcome/static/images/twitter.png" alt="Follow us on Twitter!" /></li>
</ul>
</div>
My CSS file is
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, hr, button {margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align: baseline; background:none;}
table, tbody, tfoot, thead, tr, th, td {padding:4px;vertical-align:top;}
ol, ul {list-style:none;}
h1, h2, h3, h4, h5, h6, li {line-height:100%;}
blockquote, q {quotes:none;}
q:before,
q:after {content: '';}
table {border-collapse:collapse; border-spacing:0;}
input, textarea, select{
font:11px Arial, Helvetica, sans-serif;
vertical-align:middle;
margin:0;
padding:0;
}
form, fieldset{border-style:none;}
html {height:100%;}
body {
min-width:1004px;
color:#404344;
height:100%;
font:13px/16px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
background:#fff;
margin: 0 1px 1px;
}
img{border-style:none;}
a{
text-decoration:none;
color:#000000;
}
a:focus {outline:none;}
a:hover{text-decoration:underline;}
/* wrapper */
#wrapper{
width:100%;
min-height:100%;
}
* html #wrapper {height:100%;}
/* header */
#header {
width:100%;
background:#1596c3 url(http://bnano-www.appspot.com/welcome/static/images/bg-header.png) repeat-x;
}
#header:after {
display:block;
clear:both;
content:"";
}
/* header-area */
.header-area {
margin:0 auto;
width:948px;
padding:0 23px;
}
/* top-panel*/
.top-panel {
overflow:hidden;
height:36px;
padding:6px 0 0 4px;
margin:0 0 19px;
position:relative;
z-index:9999999 !important;
}
/* search-form */
.search-form {
float:right;
margin:0 10px 0 15px;
}
.search-form form {float:left;}
.top-panel .text {
float:left;
padding:6px 13px 7px 13px;
margin:0 5px 0 0;
background:url(http://bnano-www.appspot.com/welcome/static/images/bg-text.gif) no-repeat;
}
.top-panel .text input {
font:13px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
color:#8cc0d3;
float:left;
width:157px;
margin:0;
padding:0 -2px 0 0;
border:0;
background:none;
}
.top-panel .text input:focus {outline:none;}
.search-form .search {
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/btn-search.gif) no-repeat;
width:26px;
height:27px;
overflow:hidden;
text-indent:-9999px;
line-height:0;
font-size:0;
cursor:pointer;
border:0;
}
/* email-form */
.email-form {
float:left;
width:214px;
}
.email-form form {float:left;}
.email-form .go {
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/btn-go.gif) no-repeat;
width:26px;
height:27px;
overflow:hidden;
text-indent:-9999px;
line-height:0;
font-size:0;
cursor:pointer;
border:0;
}
/* links */
.top-panel .links {
float:right;
padding:9px 0 0;
width:400px;
}
.top-panel .links .title {
float:left;
color:#fdfdfd;
font-weight:normal;
font-size:13px;
text-transform:uppercase;
padding-top:1px;
}
.top-panel .links .title .cufon {
float:left;
margin:0 !important;
}
.top-panel .links ul {
float:left;
position:relative;
margin:-5px 0 0;
}
.top-panel .links li {
float:left;
padding:0 0 0 9px;
}
.top-panel .links li img {display:block;}
/* header-info */
.header-info {
padding:0 0 95px 17px;
position:relative;
z-index:99999 !important;
}
/* logo */
.logo {
float:left;
background:url(/welcome/static/images/logo-opaque.png) no-repeat;
width:220px;
height:176px;
text-indent:-9999px;
margin:0 0 0 -15px;
position:relative;
z-index: 999999 !important;
}
.logo a {
display:block;
height:100%;
}
/* nav */
#nav {
float:right;
padding:20px 0 0;
}
#nav li {
float:left;
margin:0 3px 0 3px;
font-size:16px;
line-height:17px;
}
#nav li a {
float:left;
padding:0 5px 0 0;
color:#a9cfdd;
cursor:pointer;
}
#nav li a span {
float:left;
padding:5px 6px 4px 11px;
}
#nav li.active a,
#nav li a:hover {
text-decoration:none;
color:#f6f6f6;
background:url(http://bnano-www.appspot.com/welcome/static/images/btn-active.gif) no-repeat 100% -23px;
}
#nav li.active a span,
#nav li a:hover span {
background:url(http://bnano-www.appspot.com/welcome/static/images/btn-active.gif) no-repeat;
}
#nav li a .cufon {
float:left;
margin:0 !important;
}
/* info-area */
#header .info-area {
height:398px;
width:900px;
background:none !important;
padding:15px 2px 0 13px;
margin-top:-148px;
margin-left:25px;
}
#header .info-area .txt {
float:left;
color:#f6f8f9;
font-size:19px;
margin-top:100px;
}
#header .info-area .txt .cufon {
float:left;
margin:0 !important;
}
#header .info-area .txt .text .cufon {margin-top:1px !important;}
#header .info-area .title {
color:#a9cfdd;
font-size:48px;
position:absolute;
line-height:51px;
padding-top:55px;
width:550px;
}
#header .info-area .title span {
font-size:35px;
line-height:36px;
display:block;
overflow:hidden;
width:100%;
height:32px !important;
padding-top:1px;
}
#header .info-area .title em {
font-style:normal;
display:block;
overflow:hidden;
width:100%;
height:53px !important;
}
#header .info-area .desc {
font-family: "Arial Narrow", sans-serif;
line-height:20px;
margin: 8px 0 25px 3px;
font-size:19px;
letter-spacing:2px;
position:absolute;
z-index:9999 !important;
padding-top:130px;
width:550px;
}
#header .info-area .txt .text {
display:block;
overflow:hidden;
height:1%;
padding:0 0 5px;
}
#header .info-area .txt .text1 {
background:url(http://bnano-www.appspot.com/welcome/static/images/ico03.gif) no-repeat 2px 9px;
padding:26px 0 27px 114px;
}
#header .info-area .img {
float:right;
position:relative;
margin-left:500px;
margin-top:-100px;
}
#header .info-area .more {
overflow:hidden;
height:25px;
letter-spacing:1px !important;
margin-top:23px;
margin-left:-3px;
}
#header .info-area .more a {
color:#f6f8f9;
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet05.gif) no-repeat 5px 3px;
padding:0 0 0 19px;
font-size:18px;
}
#header .info-area .more a span {
float:left;
margin-left:-2px;
padding-bottom:0;
}
#header .info-area .more a:hover {text-decoration:none;}
#header .info-area .more a:hover span {
border-bottom:1px solid #f6f8f9;
padding:0;
}
/* main */
#main {
overflow:hidden;
width:100%;
padding:58px 0 122px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bg-main-area.gif) repeat-x;
}
/* onecolumn */
#onecolumn {
margin:0 auto;
overflow:hidden;
width:1004px;
position:relative;
}
#onecolumn ul {
margin:10px 0 10px 25px;
}
#onecolumn li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 12px 15px;
line-height:16px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet03.gif) no-repeat 2px 6px;
}
#onecolumn h2 {
color:#062f3d;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 8px 0;
}
#onecolumn h2 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#onecolumn h2 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
padding-bottom:15px;
}
#onecolumn h2 .cufon {
float:left;
margin:0 !important;
}
#onecolumn h3 {
color:#676a6b;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 10px;
}
#onecolumn h3 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#onecolumn h3 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
margin:-3px 0 0;
}
#onecolumn h3 .cufon {
float:left;
margin:0 !important;
}
#onecolumn .content {
padding:0 48px 10px 48px;
}
#onecolumn content p {margin:0 0 16px;}
/* twocolumns */
#twocolumns {
margin:0 auto;
overflow:hidden;
width:1004px;
position:relative;
}
#twocolumns h2 {
color:#062f3d;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 14px 0;
}
#twocolumns h2 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#twocolumns h2 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
margin:-3px 0 0;
font-size:30px;
}
#twocolumns h2 .cufon {
float:left;
margin:0 !important;
}
#twocolumns h3 {
color:#062f3d;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 10px;
}
#twocolumns h3 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#twocolumns h3 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
margin:-3px 0 0;
font-size:26px;
}
#twocolumns h3 .cufon {
float:left;
margin:0 !important;
}
#twocolumns h4 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
font-size:16px;
margin: 10px 0 17px 2px;
}
/* content */
#content {
position:relative;
float:left;
width:596px;
padding:0 20px 10px 48px;
z-index: 99999 !important;
}
#content p {
margin:0 2px 16px;
line-height:18px;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size:13px;
}
#content p img {
padding:10px;
}
#content .more {
overflow:hidden;
height:1%;
padding:0 0 16px 4px;
font-size:14px;
}
#content .more a {
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet01.gif) no-repeat 0 55%;
padding:0 0 0 13px;
color:#404344;
}
#content .more a:hover {
color:#138db7;
}
/* video-block */
#content .video-block {
width:616px;
margin:0 -20px 0 -19px;
position:relative;
padding:0 4px 0 15px;
background:#d4dadb url(http://bnano-www.appspot.com/welcome/static/images/bg-video-block.gif) repeat-x;
}
#content .video-block:after {
display:block;
clear:both;
content:"";
}
#content .video-block .heading {
background:url(http://bnano-www.appspot.com/welcome/static/images/bg-heading.gif) no-repeat;
width:176px;
height:51px;
position:relative;
margin:0 0 4px -7px;
padding:25px 0 0 15px;
}
#content .video-block .info-col {
float:left;
width:271px;
padding:0 0 0 7px;
margin:-6px 0 0;
position:relative;
}
#content .video-block h3 {
overflow:hidden;
width:100%;
padding:3px 0 0;
margin:0;
}
#twocolumns .video-block strong {
width:auto;
float:left;
display:inline;
font-size:18px;
color:#fff;
}
#twocolumns .video-block span{
width:auto;
float:left;
display:inline;
font-size:25px;
color:#fff;
}
/* list */
#content .video-block .list {height:1%;}
#content .video-block .list li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 13px 13px;
line-height:14px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet02.gif) no-repeat 1px 4px;
}
#content .video-block .list li h4 {
font-size:13px;
line-height:15px;
font-weight:normal;
color:#967723;
}
#content .video-block .list li h4 a {color:#967723;}
#content .video-block .list li p {margin:0;}
#content .video-block .video {
float:right;
margin:0 0 -8px;
padding:30px 0 0;
position:relative;
}
#content .video-block .video img {display:block;}
#content blockquote {
font: 14px/22px normal helvetica, sans-serif;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 50px;
padding-left: 15px;
border-left: 3px solid #ccc;
}
#content blockquote p {margin:0;}
#content blockquote cite {font-style:normal;}
/* blocks */
#content .blocks {
overflow:hidden;
width:582px;
}
#content .blocks h3 {
font-size:14px;
line-height:18px;
font-weight:normal;
color:#4499b7;
margin:0 0 13px;
}
#content .block-holder {
width:590px;
overflow:hidden;
margin:0 -8px 5px 0;
}
#content .blocks .block {
width:290px;
margin:0 4px 0 0;
padding:18px 0 10px;
float:left;
color:#ba9d50;
font-size:11px;
line-height:13px;
background:#dcddde;
}
#content .blocks .block .img {
overflow:hidden;
width:100%;
text-align:center;
margin:0 0 18px;
}
#content .blocks .block .img img {vertical-align:top;}
#content .blocks .block p {
text-align:center;
margin:0;
}
#content .blocks .block p a {color:#ba9d50;}
#content ul {
margin:10px 0 10px 25px;
}
#content li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 12px 15px;
line-height:16px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet03.gif) no-repeat 2px 6px;
}
/* sidebar */
#sidebar {
float:right;
position:relative;
width:315px;
padding:0 3px 0 10px;
overflow:hidden;
z-index: 99999 !important;
}
#sidebar p {
margin-left:2px;
}
/* news-list */
#sidebar .news-list {
width:300px;
padding:0 15px 19px 0;
}
#sidebar .news-list li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 12px 15px;
line-height:14px;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet03.gif) no-repeat 2px 6px;
}
#sidebar .news-list li h4 {
font-size:13px;
line-height:15px;
font-weight:normal;
margin:0 0 1px;
}
/* news-list1 */
#sidebar .news-list1 {
padding-right:0;
padding-bottom:14px;
width:300px;
}
#sidebar .news-list1 li {
background-position:3px 6px;
padding-left:17px;
}
#sidebar .news-list1 h4 {
color:#967723;
position:relative;
word-spacing:-1px;
}
#sidebar .news-list1 h4 a {color:#967723;}
/* #sidebar .news-list1 h4 a {color:#967723;} */
/* info-list */
#sidebar .info-list {
width:269px;
padding:1px 0 0;
}
#sidebar .info-list li {
overflow:hidden;
height:1%;
font-size:25px;
line-height:27px;
margin:0 0 2px;
vertical-align:top;
background:url(http://bnano-www.appspot.com/welcome/static/images/bg-info-list.gif) no-repeat;
}
#sidebar .info-list li a {
float:left;
padding:9px 10px 4px 41px;
color:#138db7;
background:url(http://bnano-www.appspot.com/welcome/static/images/bullet04.gif) no-repeat 13px 50%;
}
#sidebar .info-list li a .cufon {
float:left;
margin:0 !important;
}
#sidebar .info-list li a:hover {text-decoration:none;}
#sidebar .info-list li a span {
float:left;
margin:0 2px 0 0;
}
#sidebar .info-list li a strong {float:left;}
#sidebar .view {
display:block;
background:url(http://bnano-www.appspot.com/assets/files/img/btn/online-store.png) no-repeat;
color:#fff;
font-size:30px;
width:191px;
height:75px;
margin:0 0 0 -8px;
padding:22px 115px 0 18px;
}
#sidebar .view span {
font-size:30px;
overflow:hidden;
width:100%;
display:block;
}
#sidebar .view strong {
overflow:hidden;
width:100%;
display:block;
}
#sidebar .view .cufon {
float:left;
margin:0 !important;
}
#sidebar .view:hover {text-decoration:none;}
/* footer */
#footer {
height:206px;
position:relative;
overflow:hidden;
margin:-106px 0 0;
font-size:11px;
line-height:14px;
color:#9ddbf1;
background:#1494c1 url(http://bnano-www.appspot.com/welcome/static/images/bg-footer.gif) repeat-x;
}
/* footer-area */
.footer-area {
margin:0 auto;
width:948px;
padding:52px 1px 0;
}
.footer-area p a {color:#000000;}
#footer .copyright {
float:left;
width:390px;
margin:5px 30px 0 0;
}
#footer .copyright p {text-align:right;}
#footer .logo1 {
float:left;
background:url(http://bnano-www.appspot.com/welcome/static/images/logo01.png) no-repeat;
width:130px;
height:102px;
overflow:hidden;
text-indent:-9999px;
position:relative;
margin:-52px 30px 0 0;
}
#footer .logo1 a {
display:block;
height:100%;
}
/* info */
#footer .info {
float:left;
width:350px;
position:relative;
margin:-9px 0 0;
}
#sidebar form {
width : 295px;
height : auto;
text-align : left;
margin-top : 10px;
margin-bottom:25px;
border: none;
}
#sidebar input {
width : 240px;
height:20px;
background : url(http://bnano-www.appspot.com/welcome/static/images/bg-input.png) no-repeat scroll 0% 0%;
color : #666;
font-size : 14px;
margin-bottom : 6px;
padding : 10px 10px 8px 10px;
border:0;
}
#sidebar textarea {
width : 265px;
height : 105px;
background : url(http://bnano-www.appspot.com/welcome/static/images/textarea-b.png) no-repeat scroll 0% 0%;
padding : 10px 30px 10px 10px;
font-size : 14px;
color : #666;
margin-bottom : 1px;
border:0;
}
#sidebar .button {
background : url(http://bnano-www.appspot.com/welcome/static/images/button.png) no-repeat 0% 0%;
width : 104px;
height : 30px;
color : #fff;
font-size : 13px;
cursor:pointer;
margin-top:10px;
margin-left:180px;
padding : 5px 0 5px 0;
border:0;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
#sidebar .invalidValue {
color:#c21313;
}
The live site is here. Can you tell me how to add an option element close to the Like button where I can choose English or Spanish? When I add an option element the layout collapses since there are too many elements or something.
Thank you
This HTML structure
<div class="top-panel">
<div style="margin-top: 3px; margin-left: 15px; width: 89px; float: left;"> <-- Contains FB
<div class="links"> <-- Contains the Follow us links
</div>
You need to switch the order and set a width to the items so that they don't free float. Currently, your FB container is floating right and taking up all the remaining space
<div class="top-panel">
<div class="links"> <-- Floats left with set width
<div class="fbstuff"> <-- Floats left with set width
<div class="langstuff"> <-- Your new lang select area
</div>
Once you put the items in the correct order and float them left, it should fix your problem
I'd start by shrinking the width of that facebook like iFrame to about 200, then directly after the iframe's parent div container, add an additional div and float it right. then in that, put your select dropdown.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I'm trying to make a footer to my HTML page and I want the texts to appear directly beneath the headings:
As can be seen this works when there are 4 rows but if I write only one row it doesn't come on top. I tried putting valign="top" but it didn't work:
<div id="footer">
<div class="footer-area">
<table cellspacing='2' cellpadding='2' border='0' width='798'><tbody><tr><td><h3>Contact</h3></td><td><h3>Opportunity</h3></td><td width='100'><h3>Products </h3></td><td><h3>Policies</h3></td><td><h3>Our Sites</h3></td></tr><tr><td valign="top">Bnano International Ltd<br>
207 Regent Street<br>
London, England<br>info#bnano.eu
</td><td>How to join<br>
Why join Bnano<br>
Financial opportunity<br>
Distributors resources <td valign="top">Water
</td><td valign="top">Company Policies<br>
Retail term of use<br>
Privacy policy<br>
Return policy</td><td valign="top">Scandinavia<br>
Discover Bnano</td></tr></tbody></table>
</div>
</div><!-- footer -->
My CSS file is
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, hr, button {margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align: baseline; background:none;}
table, tbody, tfoot, thead, tr, th, td {padding:4px;vertical-align:middle;}
ol, ul {list-style:none;}
h1, h2, h3, h4, h5, h6, li {line-height:100%;}
blockquote, q {quotes:none;}
q:before,
q:after {content: '';}
table {border-collapse:collapse; border-spacing:0;}
input, textarea, select{
font:11px Arial, Helvetica, sans-serif;
vertical-align:middle;
margin:0;
padding:0;
}
form, fieldset{border-style:none;}
html {height:100%;}
body {
min-width:1004px;
color:#404344;
height:100%;
font:13px/16px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
background:#fff;
margin: 0 1px 1px;
}
img{border-style:none;}
a{
text-decoration:none;
color:#000000;
}
a:focus {outline:none;}
a:hover{text-decoration:underline;}
/* wrapper */
#wrapper{
width:100%;
min-height:100%;
}
* html #wrapper {height:100%;}
/* header */
#header {
width:100%;
background:#1596c3 url(/welcome/static/images/bg-header.png) repeat-x;
}
#header:after {
display:block;
clear:both;
content:"";
}
/* header-area */
.header-area {
margin:0 auto;
width:948px;
padding:0 23px;
}
/* top-panel*/
.top-panel {
overflow:hidden;
height:36px;
padding:6px 0 0 4px;
margin:0 0 19px;
position:relative;
z-index:9999999 !important;
}
/* search-form */
.search-form {
float:right;
margin:0 10px 0 15px;
}
.search-form form {float:left;}
.top-panel .text {
float:left;
padding:6px 13px 7px 13px;
margin:0 5px 0 0;
background:url(http://www.supernaturalsilver.com/images/bg-text.gif) no-repeat;
}
.top-panel .text input {
font:13px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
color:#8cc0d3;
float:left;
width:157px;
margin:0;
padding:0 -2px 0 0;
border:0;
background:none;
}
.top-panel .text input:focus {outline:none;}
.search-form .search {
float:left;
background:url(http://www.supernaturalsilver.com/images/btn-search.gif) no-repeat;
width:26px;
height:27px;
overflow:hidden;
text-indent:-9999px;
line-height:0;
font-size:0;
cursor:pointer;
border:0;
}
/* email-form */
.email-form {
float:left;
width:214px;
}
.email-form form {float:left;}
.email-form .go {
float:left;
background:url(http://www.supernaturalsilver.com/img/btn-go.gif) no-repeat;
width:26px;
height:27px;
overflow:hidden;
text-indent:-9999px;
line-height:0;
font-size:0;
cursor:pointer;
border:0;
}
/* links */
.top-panel .links {
float:right;
padding:9px 0 0;
width:400px;
}
.top-panel .links .title {
float:left;
color:#fdfdfd;
font-weight:normal;
font-size:13px;
text-transform:uppercase;
padding-top:1px;
}
.top-panel .links .title .cufon {
float:left;
margin:0 !important;
}
.top-panel .links ul {
float:left;
position:relative;
margin:-5px 0 0;
}
.top-panel .links li {
float:left;
padding:0 0 0 9px;
}
.top-panel .links li img {display:block;}
/* header-info */
.header-info {
padding:0 0 95px 17px;
position:relative;
z-index:99999 !important;
}
/* logo */
.logo {
float:left;
background:url(/welcome/static/images/bnano_logo.jpg) no-repeat;
width:220px;
height:76px;
text-indent:-9999px;
margin:0 0 0 -15px;
position:relative;
z-index: 999999 !important;
}
.logo a {
display:block;
height:100%;
}
/* nav */
#nav {
float:right;
padding:20px 0 0;
}
#nav li {
float:left;
margin:0 3px 0 3px;
font-size:16px;
line-height:17px;
}
#nav li a {
float:left;
padding:0 5px 0 0;
color:#a9cfdd;
cursor:pointer;
}
#nav li a span {
float:left;
padding:5px 6px 4px 11px;
}
#nav li.active a,
#nav li a:hover {
text-decoration:none;
color:#f6f6f6;
background:url(http://www.supernaturalsilver.com/img/btn-active.gif) no-repeat 100% -23px;
}
#nav li.active a span,
#nav li a:hover span {
background:url(http://www.supernaturalsilver.com/img/btn-active.gif) no-repeat;
}
#nav li a .cufon {
float:left;
margin:0 !important;
}
/* info-area */
#header .info-area {
height:398px;
width:900px;
background:none !important;
padding:15px 2px 0 13px;
margin-top:-148px;
margin-left:25px;
}
#header .info-area .txt {
float:left;
color:#f6f8f9;
font-size:19px;
margin-top:100px;
}
#header .info-area .txt .cufon {
float:left;
margin:0 !important;
}
#header .info-area .txt .text .cufon {margin-top:1px !important;}
#header .info-area .title {
color:#a9cfdd;
font-size:48px;
position:absolute;
line-height:51px;
padding-top:55px;
width:550px;
}
#header .info-area .title span {
font-size:35px;
line-height:36px;
display:block;
overflow:hidden;
width:100%;
height:32px !important;
padding-top:1px;
}
#header .info-area .title em {
font-style:normal;
display:block;
overflow:hidden;
width:100%;
height:53px !important;
}
#header .info-area .desc {
font-family: "Arial Narrow", sans-serif;
line-height:20px;
margin: 8px 0 25px 3px;
font-size:19px;
letter-spacing:2px;
position:absolute;
z-index:9999 !important;
padding-top:130px;
width:550px;
}
#header .info-area .txt .text {
display:block;
overflow:hidden;
height:1%;
padding:0 0 5px;
}
#header .info-area .txt .text1 {
background:url(http://www.supernaturalsilver.com/img/ico03.gif) no-repeat 2px 9px;
padding:26px 0 27px 114px;
}
#header .info-area .img {
float:right;
position:relative;
margin-left:500px;
margin-top:-100px;
}
#header .info-area .more {
overflow:hidden;
height:25px;
letter-spacing:1px !important;
margin-top:23px;
margin-left:-3px;
}
#header .info-area .more a {
color:#f6f8f9;
float:left;
background:url(http://www.supernaturalsilver.com/img/bullet05.gif) no-repeat 5px 3px;
padding:0 0 0 19px;
font-size:18px;
}
#header .info-area .more a span {
float:left;
margin-left:-2px;
padding-bottom:0;
}
#header .info-area .more a:hover {text-decoration:none;}
#header .info-area .more a:hover span {
border-bottom:1px solid #f6f8f9;
padding:0;
}
/* main */
#main {
overflow:hidden;
width:100%;
padding:58px 0 122px;
background:url(http://www.supernaturalsilver.com/img/bg-main-area.gif) repeat-x;
}
/* onecolumn */
#onecolumn {
margin:0 auto;
overflow:hidden;
width:1004px;
position:relative;
}
#onecolumn ul {
margin:10px 0 10px 25px;
}
#onecolumn li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 12px 15px;
line-height:16px;
background:url(http://www.supernaturalsilver.com/img/bullet03.gif) no-repeat 2px 6px;
}
#onecolumn h2 {
color:#062f3d;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 8px 0;
}
#onecolumn h2 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#onecolumn h2 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
padding-bottom:15px;
}
#onecolumn h2 .cufon {
float:left;
margin:0 !important;
}
#onecolumn h3 {
color:#676a6b;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 10px;
}
#onecolumn h3 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#onecolumn h3 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
margin:-3px 0 0;
}
#onecolumn h3 .cufon {
float:left;
margin:0 !important;
}
#onecolumn .content {
padding:0 48px 10px 48px;
}
#onecolumn content p {margin:0 0 16px;}
/* twocolumns */
#twocolumns {
margin:0 auto;
overflow:hidden;
width:1004px;
position:relative;
}
#twocolumns h2 {
color:#062f3d;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 14px 0;
}
#twocolumns h2 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#twocolumns h2 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
margin:-3px 0 0;
font-size:30px;
}
#twocolumns h2 .cufon {
float:left;
margin:0 !important;
}
#twocolumns h3 {
color:#062f3d;
font-size:25px;
line-height:26px;
font-weight:normal;
margin:0 0 10px;
}
#twocolumns h3 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
}
#twocolumns h3 span {
display:block;
overflow:hidden;
width:100%;
position:relative;
margin:-3px 0 0;
font-size:26px;
}
#twocolumns h3 .cufon {
float:left;
margin:0 !important;
}
#twocolumns h4 strong {
color:#138db7;
font-weight:bold;
display:block;
overflow:hidden;
width:100%;
font-size:16px;
margin: 10px 0 17px 2px;
}
/* content */
#content {
position:relative;
float:left;
width:596px;
padding:0 20px 10px 48px;
z-index: 99999 !important;
}
#content p {
margin:0 2px 16px;
line-height:18px;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size:13px;
}
#content p img {
padding:10px;
}
#content .more {
overflow:hidden;
height:1%;
padding:0 0 16px 4px;
font-size:14px;
}
#content .more a {
float:left;
background:url(http://www.supernaturalsilver.com/img/bullet01.gif) no-repeat 0 55%;
padding:0 0 0 13px;
color:#404344;
}
#content .more a:hover {
color:#138db7;
}
/* video-block */
#content .video-block {
width:616px;
margin:0 -20px 0 -19px;
position:relative;
padding:0 4px 0 15px;
background:#d4dadb url(http://www.supernaturalsilver.com/img/bg-video-block.gif) repeat-x;
}
#content .video-block:after {
display:block;
clear:both;
content:"";
}
#content .video-block .heading {
background:url(http://www.supernaturalsilver.com/img/bg-heading.gif) no-repeat;
width:176px;
height:51px;
position:relative;
margin:0 0 4px -7px;
padding:25px 0 0 15px;
}
#content .video-block .info-col {
float:left;
width:271px;
padding:0 0 0 7px;
margin:-6px 0 0;
position:relative;
}
#content .video-block h3 {
overflow:hidden;
width:100%;
padding:3px 0 0;
margin:0;
}
#twocolumns .video-block strong {
width:auto;
float:left;
display:inline;
font-size:18px;
color:#fff;
}
#twocolumns .video-block span{
width:auto;
float:left;
display:inline;
font-size:25px;
color:#fff;
}
/* list */
#content .video-block .list {height:1%;}
#content .video-block .list li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 13px 13px;
line-height:14px;
background:url(http://www.supernaturalsilver.com/img/bullet02.gif) no-repeat 1px 4px;
}
#content .video-block .list li h4 {
font-size:13px;
line-height:15px;
font-weight:normal;
color:#967723;
}
#content .video-block .list li h4 a {color:#967723;}
#content .video-block .list li p {margin:0;}
#content .video-block .video {
float:right;
margin:0 0 -8px;
padding:30px 0 0;
position:relative;
}
#content .video-block .video img {display:block;}
#content blockquote {
font: 14px/22px normal helvetica, sans-serif;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 50px;
padding-left: 15px;
border-left: 3px solid #ccc;
}
#content blockquote p {margin:0;}
#content blockquote cite {font-style:normal;}
/* blocks */
#content .blocks {
overflow:hidden;
width:582px;
}
#content .blocks h3 {
font-size:14px;
line-height:18px;
font-weight:normal;
color:#4499b7;
margin:0 0 13px;
}
#content .block-holder {
width:590px;
overflow:hidden;
margin:0 -8px 5px 0;
}
#content .blocks .block {
width:290px;
margin:0 4px 0 0;
padding:18px 0 10px;
float:left;
color:#ba9d50;
font-size:11px;
line-height:13px;
background:#dcddde;
}
#content .blocks .block .img {
overflow:hidden;
width:100%;
text-align:center;
margin:0 0 18px;
}
#content .blocks .block .img img {vertical-align:top;}
#content .blocks .block p {
text-align:center;
margin:0;
}
#content .blocks .block p a {color:#ba9d50;}
#content ul {
margin:10px 0 10px 25px;
}
#content li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 12px 15px;
line-height:16px;
background:url(http://www.supernaturalsilver.com/img/bullet03.gif) no-repeat 2px 6px;
}
/* sidebar */
#sidebar {
float:right;
position:relative;
width:315px;
padding:0 3px 0 10px;
overflow:hidden;
z-index: 99999 !important;
}
#sidebar p {
margin-left:2px;
}
/* news-list */
#sidebar .news-list {
width:300px;
padding:0 15px 19px 0;
}
#sidebar .news-list li {
overflow:hidden;
height:1%;
vertical-align:top;
padding:0 0 12px 15px;
line-height:14px;
background:url(http://www.supernaturalsilver.com/img/bullet03.gif) no-repeat 2px 6px;
}
#sidebar .news-list li h4 {
font-size:13px;
line-height:15px;
font-weight:normal;
margin:0 0 1px;
}
/* news-list1 */
#sidebar .news-list1 {
padding-right:0;
padding-bottom:14px;
width:300px;
}
#sidebar .news-list1 li {
background-position:3px 6px;
padding-left:17px;
}
#sidebar .news-list1 h4 {
color:#967723;
position:relative;
word-spacing:-1px;
}
#sidebar .news-list1 h4 a {color:#967723;}
/* #sidebar .news-list1 h4 a {color:#967723;} */
/* info-list */
#sidebar .info-list {
width:269px;
padding:1px 0 0;
}
#sidebar .info-list li {
overflow:hidden;
height:1%;
font-size:25px;
line-height:27px;
margin:0 0 2px;
vertical-align:top;
background:url(http://www.supernaturalsilver.com/img/bg-info-list.gif) no-repeat;
}
#sidebar .info-list li a {
float:left;
padding:9px 10px 4px 41px;
color:#138db7;
background:url(http://www.supernaturalsilver.com/img/bullet04.gif) no-repeat 13px 50%;
}
#sidebar .info-list li a .cufon {
float:left;
margin:0 !important;
}
#sidebar .info-list li a:hover {text-decoration:none;}
#sidebar .info-list li a span {
float:left;
margin:0 2px 0 0;
}
#sidebar .info-list li a strong {float:left;}
#sidebar .view {
display:block;
background:url(http://www.supernaturalsilver.com/assets/files/img/btn/online-store.png) no-repeat;
color:#fff;
font-size:30px;
width:191px;
height:75px;
margin:0 0 0 -8px;
padding:22px 115px 0 18px;
}
#sidebar .view span {
font-size:30px;
overflow:hidden;
width:100%;
display:block;
}
#sidebar .view strong {
overflow:hidden;
width:100%;
display:block;
}
#sidebar .view .cufon {
float:left;
margin:0 !important;
}
#sidebar .view:hover {text-decoration:none;}
/* footer */
#footer {
height:206px;
position:relative;
overflow:hidden;
margin:-106px 0 0;
font-size:11px;
line-height:14px;
color:#9ddbf1;
background:#1494c1 url(http://www.supernaturalsilver.com/img/bg-footer.gif) repeat-x;
}
/* footer-area */
.footer-area {
margin:0 auto;
width:948px;
padding:52px 1px 0;
}
.footer-area p a {color:#000000;}
#footer .copyright {
float:left;
width:390px;
margin:5px 30px 0 0;
}
#footer .copyright p {text-align:right;}
#footer .logo1 {
float:left;
background:url(http://www.supernaturalsilver.com/img/logo01.png) no-repeat;
width:130px;
height:102px;
overflow:hidden;
text-indent:-9999px;
position:relative;
margin:-52px 30px 0 0;
}
#footer .logo1 a {
display:block;
height:100%;
}
/* info */
#footer .info {
float:left;
width:350px;
position:relative;
margin:-9px 0 0;
}
#sidebar form {
width : 295px;
height : auto;
text-align : left;
margin-top : 10px;
margin-bottom:25px;
border: none;
}
#sidebar input {
width : 240px;
height:20px;
background : url(http://www.supernaturalsilver.com/img/bg-input.png) no-repeat scroll 0% 0%;
color : #666;
font-size : 14px;
margin-bottom : 6px;
padding : 10px 10px 8px 10px;
border:0;
}
#sidebar textarea {
width : 265px;
height : 105px;
background : url(http://www.supernaturalsilver.com/img/textarea-b.png) no-repeat scroll 0% 0%;
padding : 10px 30px 10px 10px;
font-size : 14px;
color : #666;
margin-bottom : 1px;
border:0;
}
#sidebar .button {
background : url(http://www.supernaturalsilver.com/img/button.png) no-repeat 0% 0%;
width : 104px;
height : 30px;
color : #fff;
font-size : 13px;
cursor:pointer;
margin-top:10px;
margin-left:180px;
padding : 5px 0 5px 0;
border:0;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
#sidebar .invalidValue {
color:#c21313;
}
Can you tell me how to achieve that the texts "Water" and "Scandinavia" appear on top in their columns?
In your CSS you have specifically set your vertical-align to middle, which may be overriding the valign attribute. Take a look at this rule:
table, tbody, tfoot, thead, tr, th, td {padding:4px;vertical-align:middle;}
When I set the property to top there everything appears as expected.
You're using tables, which is strongly discouraged, especially as of late, and you're not even using them correctly...
Your line breaks in the table data are expanding the row vertically. The vertically aligned middle table data (in this case the water and scandinavia bits) is being centered in a larger row than you would like. It would be better to change the structure of your footer, but with minimal changes, you could get away with changing the rowspan to the amount of line breaks inside of it.
I know a trick, play with padding-top.
Why is my footer not displaying full page
width in IE8:
Display:
http://cl.ly/0J2Z0l1w3S1e0A3d3Q1V
HTML:
<footer>
content
</footer
/*Reset */
html, body, #wrapper, #main h1, h2, h3, h4, h5, h6, form, input, ul, ol, p, fieldset { padding: 0; margin: 0; }
/* Main CSS */
html, body,#wrapper{
width:990px;
height:100%;
min-height:100%;
margin: 0 auto;
}
#wrapper{
position: absolute;
}
#header{
position:relative z-index:500;
background:url('../images/header.png');
width:990px;
height:220px;
}
/*Menu */
nav{
float:left;
width:190px;
margin:0 0 0 0;
}
nav ul{
float:left;
margin:0;
list-style:none;
font-size:14px;
width:190px;
}
nav li a{
font-size:14px;
color:#fff;
line-height:25px; /*Text Hight On Button */
text-decoration:none;
text-indent:25px;
display:block;
width:190px;
height:27px;
background-image:url('../images/normal.png');
}
nav a:hover{
background-image:url('../images/onclick.png');
}
/*Content */
#content{
margin: 0 0 0 190px;
background:url('../images/mainbg.png') no-repeat;
width:815px;
height:555px;
}
#content h1{
margin: 5px 0 0 10px;
font-family: 'Josefin Slab', arial, serif;
font-size:24px;
}
#content p{
margin:0 0 0 15px;
}
#content li{
margin:0 0 0 35px;
}
.clear{
clear:both;
margin:0;
padding:0;
}
footer{
clear:both;
overflow:hidden;
bottom:0;
background:url('../images/footer.png') no-repeat #000;
width:100%;
height:20px;
border: 6px solid pink;
}
/* Misc*/
#metal{
float:left;
margin:160px 0 0 -190px;
background:url('../images/metalnavbg.png');
height:400px;
width:190px;
}
/* Text Formatting */
#companyName{
text-align:center;
padding-top:45px;
font-size:35px;
color:#f0f0ef;
}
#companyQuote{
text-align:center;
font-size:18px;
color:#a5a4a2;
}
/*Forms */
/*General*/
#validation{
font-weight:bold;
color:#ff0101;
}
.contactForm{
width: 450px;
height:425px;
padding: 15px 25px;
margin: 0 auto 10px;
color: #000;
-moz-border-radius:15px;
-webkit-border-radius:15px;
overflow: hidden;
}
#validation{
font-weight:bold;
color:#ff0101;
}
.form{
width: 400px;
height:100%;
padding: 15px 25px;
margin: 0 auto 10px;
color: #000;
-moz-border-radius:15px;
-webkit-border-radius:15px;
overflow: hidden;
}
.borderradius.form{
width: 400px;
height:100%;
padding: 15px 25px;
margin: 0 auto 10px;
color: #000;
-moz-border-radius:15px;
-webkit-border-radius:15px;
overflow: hidden;
}
fieldset{
border:none;
}
#formLayout{
border:2px solid #000;
}
#formLayout label{
clear: both;
display: block;
}
#formLayout input{
font-size:12px;
border: 2px solid #999;
padding: 6px 8px;
background-color: #fff;
-moz-border-radius:10px;
-webkit-border-radius:10px;
-webkit-box-shadow: inset 0px 2px 2px rgba(0,0,0,0.2);
-moz-box-shadow: inset 0px 2px 2px rgba(0,0,0,0.2);
color: #000;
width: 250px;
}
#formLayout .small{
color:#ff0101;
display:block;
font-size:11px;
font-weight:bold;
text-align:left;
width:140px;
}
#formLayout textarea{
width:250px;
}
#error{
width:250px;
height:20px;
margin:-30px 0 0 270px;
padding-bottom:10px;
}
#error p{
color:#ff0101;
text-align:left;
}
/* Specific Form Class's */
.login{
width: 470px;
height:250px;
padding: 15px 25px;
margin: 0 auto 10px;
color: #000;
-moz-border-radius:15px;
-webkit-border-radius:15px;
overflow: hidden;
}
.login label{
font-weight:bold;
}
.login .loginSubmit{
margin-top:25px;
}
/*Gallery CSS */
#gallery{
width:120px;
margin-left:5px;
display: inline;
}
#gallery .thumbnail{
margin:0 auto;
display:inline;
}
#gallery img{
margin:5px;
}
#sales{
width:190px;
height:195px;
margin-left:15px;
display:inline-block;
border: 1px solid red;
}
#sales .location{
float:left;
text-align:center;
font-weight:bold;
margin-left:15px;
}
#sales .price{
float:left;
text-align:left;
font-weight:bold;
padding-left:5px;
color:#ff0101;
}
If you're using <footer> (a fancy schmancy HTML5 tag) sometimes IE does not like it. This is how I've fixed issues like this. Add this to your <head>:
<script>document.createElement('footer');</script>
It may not be what's causing your issue, but I've notice when trying to use HTML5 tags, IE pretty much ignores them or renders them strangely.
Add display: block to your footer tag.
In fact, all fancy schmancy HTML5 tags should be set up.
/* HTML5 block-level reset for enhanced structural tag support in older browsers */
header, footer, section, aside, nav, article, figure { display: block; padding: 0; margin: 0; }
I have fixed this issue by floating my footer div to the left
Download Modernizr and put this script to the head of HTML site. Basically this script will register all HTML5 elements for browser. Consequently IE won't break any more unknown elements.