CSS - Css Help With Title Bar Format
Dear Friends,
I have been trying to make a stupid title bar, that i did with tables, now using css. This is what the code for a titlebar looks like in table form: <table width="100%" border="0" cellpadding="0" cellspacing="0"> <TR> <TD width="10"> <img src="img_inside_article_title-bar_left.gif" width="10" height="30"></TD> <TD colspan=2 height="30" background="tile_inside_article_titlebar_bak.gif"> <p class="left"> <span class="strong_white"> Title</span></p></TD> <TD width="14"> <img src="img_inside_article_title-bar_right.gif" width="10" height="30"></TD> </TR> </table> and would like to convert it into css. All my attempts have been very wrong, and i need help. I'd give my css code, but it is sooo wrong.......that it would be better to start from scratch. basically this is the idea: (Left Corner Image)(Title area that streaches across width of web page)(Right Corner Image) HELP Fz105 Similar TutorialsExcuse me, I'm currently designing a website (Freelance) and I would like to know how to change the color of the title. I would like to have the Title a different color. I would like to know if I could change it to get the title a different color than the Box so it will stand out more. If it is not clear I shall provide an image of what I would like to do and please provide me with Tips or Suggestions of What I should do. h tt p:/ /i125.photobucket.com/albums/p61/lazypuffstone/help.png EDIT: I apologize I did not give you the Coding .contentbox1 { width: 675px; border: solid #7A6A53; border-width: 1px 1px 1px 1px; background-color: #D5DED9; } .contentbox1 ul li { margin: 20px 20px 30px 0px; background-color: #D5DED9; list-style-type: none; } Hi. Is there any way to: a) Change background color of the title box that appears when you hover over an image AND b) Reduce the delay it takes to appear? Thanks. Hello Everybody, I am trying to figure out why IE is cutting off the foot of my title. It works just fine in firefox. I tried setting a height and it showed the bottom but cutoff the top. If anyone has any suggestions as to why IE is cutting off the bottom I would be very thankful. Website with Title cut off at bottom The title attribute will display black text in a yellow box on the mouse over of an element. Take this code: Code: <a href='#' title='This should be a different background color or something'>text link</a> I want to have the title attribute display with a different background color, different font color and font size. I was wondering how I might use CSS to get into this attribute and do some editing. Thanks in advance, Taylor Hi, is there a method of setting the color for title="some text" in a hyperlink ? e.g. [<a href="index.php?page=links.php" title="Redlake Valley business websites">Local Links</a>] TIA Mike My content and navigation bars, though set to 100%, are actually 100% (of the body/html element) plus 100 pixels (their "top" property). If I set their "top" property to 0, they fit the page perfectly but I need them below the title banner. Is there a way to make the 100% height value of these two columns relative to the fixed height of the title banner? Note: One solution was to set their "bottom" properties to 0px. This does not work in IE so it's not a valid option. Also, I do not have the option of setting the navigation's and content's divs to a "top" value of 0 and rasing the title banner's z-index to cover them as I need the overflow scroll bars to extend from the bottom of the title banner to the bottom of the page and not from the top of the page to the bottom of the page. (think frameset ) Code: <!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>100% Height - CSS Problem</title> <style> html { height:100%; } body { height:100%; padding:0px; margin:0px; background-color:#CCCCCC; } #title_banner { display:block; position:absolute; width:600px; height:100px; left:0px; top:0px; background-color:#CC6666; } #navigation { display:block; position:absolute; width:140px; height:100%; left:0px; top:100px; background-color:#66CC66; overflow:auto; } #page { display:block; position:absolute; top:100px; left:140px; width:460px; height:100%; background-color:#6666CC; overflow:auto; } </style> </head> <body> <div id="title_banner"> Set width and heighth title banner image. </div> <div id="navigation"> Navigation links. </div> <div id="page"> Page content. </div> </body> </html> I'd appreciate any links you can share as well. All of the tutorials I've seen for 100% high pages do not include a horizontal, fixed-height banner across the top. I want to place the page title on the left and the pages logo on the right of the page. The logo must be directly accross from the title. Can anyone suggest some CSS and html Below is my feeble attempt HTML: <div id="header"> <p>Report Title <span class="logo"><img src="logo.gif"> </span> </p> </div> CSS: #header p { text-align: left; } #header .logo { text-align: right; } Can you style the tooltip box that pops up on hover over an object with the 'title' attrib set? If so how? Hours of googling have only led to some fairly complex DHTML/Java solutions that I don't like the look of. Cheers, John. I'm customizing an IP Board (version 3.2.1). I've set up a test board and when I've got it how I want it I'm going to export it as a skin which I'll install on a live board. In the current version of IP Board, the post title is above the main title bar in post view, whereas in the previous version, the post title was in the main title bar, which is where I want it. One of the IPB boffins gave me a code mod which enabled me to place the post title in the main title bar. The problem is the standard code that governs the post title also governs the forum title (pictured below) in forum view. I need to get rid of this title (circled) in order to reduce some of the space between the header and the main title bar. But if I comment out this title, I also comment out the post title. According to the guy who was helping me, the only way around this is to create a new class, which is beyond his expertise -- and way beyond mine. How do I do this, or is there an alternative and hopefully simpler solution? Many thanks! This is the code in question. Code: .ipsType_pagetitle, .ipsType_subtitle { font: 300 16px/1.3 Helvetica, Arial, sans-serif; color: #141719;} The circled title is what I want to remove. http://www.thechristianidentityforum.net/smf/pix/screenshot.jpg The code also affects the post title in post view, which is why I need a new rule set/class, so I can delete the forum title in forum view but not the post title. http://www.thechristianidentityforum.net/smf/pix/screenshot2.png EDIT: For some reason the images won't display in the post. They display in preview but not when posted. Just click on the urls to see the pix. I apologize if I've broken a forum rule or two in doing this. I need to get the data/decription for the title which are stored in a database using mouse over or click.Any Idea?How to? Can someone please tell me how I can add a title/text to the top left portion of my website? I'd like it to be a title of sorts to fill in the dark gap above the navigation tabs. Thank you in advance for any suggestions... the site is northwestpahealthcare.blogspot.com Hello experts! I would like to style the font, background-color and border (possibly more) for those little yellow boxes that appear when you hover over an element with the ALT or TITLE attribute set. Is there a default/built in selector for these, or does it require a round-about method? A lot of people have been asking about this at work I'd love to be the first to find the answer (with your help of course)! I have a Wordpress Blog and the theme I am using is displaying a font which I don't like and I'd like to change it. I want to change the font used in the title of each post. No matter what I try, I cant seem to change it. I need some help. Here is the Style Sheet. Code: /* WARNING! DO NOT EDIT THIS FILE! To make it easy to update your theme, you should not edit the styles in this file. Instead use the custom.css file to add your styles. You can copy a style from this file and paste it in custom.css and it will override the style in this file. You have been warned! :) */ /* Default styles */ @import "css/reset.css"; /*------------------------------------------------------------------------------------------- INDEX: 1. SETUP -1.1 Defaults -1.2 Hyperlinks 2. SITE STRUCTURE & APPEARANCE -2.1 Containers & Columns -2.2 Navigation -2.2.1 Page Navigation -2.2.2 Category Navigation -2.2.3 Search -2.3 Header -2.4 Content -2.5 Sidebar -2.6 Footer -2.6.1 Footer Widget Area -2.7 Featured Area 3. POSTS -3.1 Typographic Elements -3.2 Images -3.3 Pagination / WP-Pagenavi -3.4 Buttons / Banners 4. WIDGETS -4.1 Generic Widgets -4.2 Specific Widgets -4.3 Sidebar Tabs -4.4 Video 5. COMMENTS -5.1 Comments -5.2 Comments Form -5.3 Pingbacks / Trackbacks 6. MISC -------------------------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------------------------*/ /* 1. SETUP */ /*-------------------------------------------------------------------------------------------*/ /* 1.1 Defaults */ body { font: 12px Arial,Helvetica,Sans-serif; line-height: 1.2; color: #333; background-color: #e4e4e4; } h1, h2, h3, h4, h5, h6 { margin: 0; font-family: Arial,Helvetica,Sans-serif; color: #000; line-height:1; } h1 {font-size: 36px; } h2 {font-size: 28px;} h3 {font-size: 20px;} h4 {font-size: 18px;} h5 {font-size: 14px;} h6 {font-size: 12px;} p {margin: 0;} /* 1.2 Hyperlinks */ a:link, a:visited { text-decoration:none; color: #838C1C; } a:hover {text-decoration:none;} .entry a:hover, .widget a:hover {border-bottom:1px dotted;} h1 a:link, h1 a:visited, h2 a:link, h2 a:visited, h3 a:link, h3 a:visited, h4 a:link, h4 a:visited, h5 a:link, h5 a:visited, h6 a:link, h6 a:visited { text-decoration: none; } h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {text-decoration: underline; border:none !important;} /*-------------------------------------------------------------------------------------------*/ /* 2. SITE STRUCTURE & APPEARANCE */ /*-------------------------------------------------------------------------------------------*/ /* 2.1 Containers & Columns */ #container { } #top { background:#232323 url(images/bg.jpg) no-repeat top center; } .col-left { float: left; } .col-right { float: right; } .col-full { width: 960px; margin: 0 auto; } /* 2.2 Navigation */ #navigation, #page-nav {font-size:11px;} #navigation a:hover, #page-nav {border:none;} #page-nav ul.rss{background:url(images/ico-rss.png) no-repeat right 8px;padding:0 35px 0;} #page-nav ul.rss li{float:left;width:auto;} #page-nav ul.rss a { line-height:29px; display:block; padding:0 10px; } /* 2.2.1 Page Navigation */ #page-nav { position:relative; background:url(images/bg-pagenav.png) repeat-x; height:29px; font-family:Verdana, Geneva, sans-serif; font-size:10px; text-transform:uppercase; } #page-nav a { color:#eee; text-decoration:none; text-shadow: #333 0px 1px 0px; } #page-nav a:hover { background:url(images/nav-hover.png) repeat; color:#fff; } #page-nav .ico-home { padding:7px 0 6px 0; } #nav, #nav ul { position:relative; z-index:200; margin:0; padding:0; list-style:none; line-height:1; } #nav a { display:block; z-index:200; padding:0 10px; line-height:29px; text-decoration:none;} #nav li { float:left; width: auto; } #nav li ul { position: absolute; left: -999em; width: 180px; } #nav li ul li { background: #7d7d7d; } #nav li ul li a { width:160px; line-height:26px; color:#eee; } #nav li ul li a:hover { color:#fff; } #nav li ul ul { margin: -26px 0 0 180px; } #nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul { left:-999em; } #nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { left: auto; } #nav li:hover,#nav li.hover { position:static; } /* 2.2.2 Category Navigation */ #cat-nav { position:relative; background:url(images/bg-catnav.png) repeat-x bottom; height:58px; border-top:1px solid #fff; } #cat-nav a { color:#333; text-decoration:none; text-shadow: #fff 0px 1px 0px; } #cat-nav a:hover { color:#000; } #cat-nav li:hover { background:#e6e6e6; } #cat-nav a span { font-family:Verdana, Geneva, sans-serif; font-size:11px; font-style:normal; font-weight:400; color:#888; text-shadow:none;} #cat-nav .nav-description { display:block; } #cat-nav a:hover span { color:#555; } #secnav li a span.sf-sub-indicator { display:none; } #secnav li ul li a span.sf-sub-indicator { display:inline; } #secnav, #secnav ul { position:relative; z-index:100; margin:0; padding:0; list-style:none; line-height:1; background: url(images/secnav-div.png) no-repeat right; } #secnav a { font-family:Georgia, "Times New Roman", Times, serif; font-style:italic; font-weight:700; font-size:14px; display:block; z-index:100; padding:0 15px; line-height:58px; text-decoration:none;} #secnav li { float:left; width: auto; background: url(images/secnav-div.png) no-repeat left; height:58px; } #secnav li ul { position: absolute; left: -999em; width: 180px; } #secnav li ul li { background:url(images/bg-catnav.png) repeat-x bottom; border:1px solid #ddd; border-width:0 1px; height:30px; } #secnav li ul li a { font-family:Verdana, Geneva, sans-serif; width:160px; line-height:30px; padding:0 10px; font-size:11px; font-style:normal; font-weight:400; color:#555; } #secnav li ul ul { margin: -30px 0 0 180px; } #secnav li:hover ul ul, #secnav li:hover ul ul ul, #secnav li.sfhover ul ul, #secnav li.sfhover ul ul ul { left:-999em; } #secnav li:hover ul, #secnav li li:hover ul, #secnav li li li:hover ul, #secnav li.sfhover ul, #secnav li li.sfhover ul, #secnav li li li.sfhover ul { left: auto; } #secnav li:hover,#secnav li.hover { position:static; } /* 2.2.3 Search */ #cat-nav #search { background:url(images/bg-search.png) no-repeat; height:31px; width:181px; margin-top:14px; position:relative; } #cat-nav #search input { background:none; border:none; padding:8px 25px 8px 12px; width:156px; margin:0; font-family:Georgia, "Times New Roman", Times, serif; font-style:italic; font-size:12px; color:#9d9d9d; } #cat-nav #search input.submit { position:absolute; right:8px; top:7px; width:15px; height:16px; padding:0; margin:0; } /* 2.3 Header */ #header{padding:25px 0;clear:both;position:relative;} #logo { min-height:70px; } #logo img { } #logo .site-title, #logo .site-description { display: none; } #logo .site-title { padding-top:15px; } #logo .site-title a { color:#fff; font-size:36px; font-weight:bold; line-height:36px; text-transform:uppercase; letter-spacing:-2px; text-shadow: #000 1px 1px 0px; } #logo .site-title a:hover { text-decoration:none; color:#eee; } #logo .site-description { color:#bbb; text-transform:uppercase; font-size:11px; text-shadow: #000 1px 1px 0px;} #topad{position:absolute;right:0px;top:36px;} #twitter-top { position:absolute;right:0px;top:36px; overflow:hidden; } #twitter-top div.logo { float:left; background:url(images/bg-twitter.png) no-repeat; width:60px; height:76px; } #twitter-top div.tweet { float:left; background:url(images/bg-twitter.png) no-repeat right; max-width:450px; height:76px; } #twitter-top img { float:left; margin: 14px 0 0 15px; } #twitter-top #twitter_update_list { padding:11px 20px 0 0px; font-family:Georgia, "Times New Roman", Times, serif; font-size:12px; font-style:italic; color:#eee; line-height:18px; } #twitter-top #twitter_update_list a { color:#eee; border-bottom:1px dotted; } #twitter-top #twitter_update_list a:hover { color:#eee; border-bottom:1px solid; } /* 2.4 Content */ #content{min-height:400px;padding:0; margin:20px auto 30px;} * html #content{height:400px;} #main{width:640px;} #main.fullwidth { width: 960px; } /* 2.5 Sidebar */ #sidebar{width:300px;overflow:hidden;} /* 2.6 Footer */ #footer{ background:#828282; color:#cacaca; font-family:Georgia, "Times New Roman", Times, serif; font-style:italic; font-size:11px;padding: 25px 0;border-top: 1px solid #b3b3b3;} #footer a { color:#cacaca; } #footer a:hover { border-bottom:1px dotted; } #footer #credit img{vertical-align:middle; } #footer #credit span{display:none;} /* 2.6.1 Footer Widget Area */ #footer-widgets{ position:relative; background:url(images/bevel-footer-widgets.png) repeat-x top; background-color:#c1c0c0; border-bottom:1px solid #7b7b7b; } #footer-widgets .container { background:url(images/bg-footer-widgets.png) no-repeat center 2px; padding:30px 0 10px; } #footer-widgets .block { width:300px; float:left; margin:0 30px 0px 0; } #footer-widgets .block.last { margin-right:0;; } #footer-widgets .widget h3 { background:url(images/bg-footer-widget-title.png) repeat-x; text-shadow: #fff 0px 1px 0px;} /* Featured Area */ #loopedSlider { position:relative; width:960px; background:#e5e5e5; border-bottom: 1px solid #b9b9b9; border-right: 1px solid #d0d0d0; } #loopedSlider .container { width:640px; height:340px; overflow:hidden; position:relative; background:#fff; border-right:1px solid #d0d0d0; } #loopedSlider .slides { position:absolute; top:0; left:0; } #loopedSlider .slides div.slide { position:absolute; top:0; width:640px; display:none; } #loopedSlider .slides .post-bottom { border-bottom:none; } #loopedSlider .featured-nav { width:318px; float:right; } #loopedSlider ul.pagination { list-style:none; padding:0; margin:0; border-top:1px solid #d0d0d0;} #loopedSlider ul.pagination li { float:left; border-bottom:1px solid #f6f6f6;} #loopedSlider ul.pagination li a { width:278px; display:block; padding:15px 20px 15px 20px; opacity:0.7; border-bottom:1px solid #d4d4d4; min-height:52px; } #loopedSlider ul.pagination li a:hover { opacity:1; background:#eee; } #loopedSlider ul.pagination li.active a { opacity:1; background:#eee;} #loopedSlider ul.pagination img { background:#fff; padding:2px; border:1px solid #d1d1d1; float:left; margin-right:10px;} #loopedSlider ul.pagination em { color:#555; font-family:Georgia, serif; font-weight:bold; line-height:18px; margin-top:10px; font-style:normal; } #loopedSlider ul.pagination .meta { display:block; font-size:11px; color:#777; line-height:16px; margin:5px 0 0 64px; } /*-------------------------------------------------------------------------------------------*/ /* 3. POSTS */ /*-------------------------------------------------------------------------------------------*/ #breadcrumb {} .archive_header { display: block; padding:10px 20px 0; margin:0 0 15px; font-size: 18px; font-weight: bold; background:url(images/bg-widget-title.png) repeat-x; height:33px; } .archive_header .cat { } .archive_header .catrss { background:url(images/ico-rss.png) no-repeat 2px; } .archive_header .catrss a { font-size: 14px; text-decoration: none; line-height: 22px; margin-left:35px; } .box { background:#fefefe url(images/bg-box.png) repeat-x; margin: 0 0 20px 0;} .post { padding:25px 25px 20px; border:1px solid #fff; position:relative; } .post-bottom { background:#E4E4E4 url(images/bg-post-bottom.png) repeat-x top; line-height:44px; padding:0px 25px; border-bottom: 1px solid #B9B9B9; border-top: 1px solid #DBDBDB; } .post-bottom div, .post-bottom div a { color:#777; font-family:Verdana, Geneva, sans-serif; font-size:11px; text-decoration:none; } .post-bottom div a:hover { color:#222; } .post-bottom .cat { background:url(images/ico-cat.png) no-repeat top left; padding:2px 0 2px 25px; height:16px;} .post-bottom .tags { background:url(images/ico-tags.png) no-repeat top left; padding:1px 0 2px 25px; height:16px;} .post .title { margin: 0 0 5px 0; font-weight:100 } .post .title a:link, .post .title a:visited { color:#222; } .post-meta{margin: 0 0 15px 0;font-size:10px;color:#9F9F9F; font-family: Verdana, Geneva, sans-serif; text-transform:uppercase; line-height:11px;} .post-meta a { border-bottom:1px dotted; } .post-meta a:hover { border:none; } .post-meta img { vertical-align:top; margin:0 5px; } .post p.tags{background:url(images/ico-tag.gif) no-repeat center left;padding-left:25px;width:100%;clear:both;} .post .thumbnail { padding:4px; border:1px solid #e2e2e2; background:#fff; margin-top:0; } .post .video { margin-bottom:20px; } .entry { font-size:14px; line-height:20px; } /* 3.1 Typographic Elements */ .entry h1 {} .entry h2 {} .entry h3 {} .entry h4 {} .entry h5 {} .entry h6 {} .entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6 { margin: 0 0 15px 0; } .entry p { margin: 0 0 15px 0; } .entry blockquote { padding: 10px 30px; color: #666; } .entry blockquote p {} .entry ul { margin: 0 0 15px 0; padding: 0 0 0 30px; } .entry ul ul { margin: 0; } .entry ul li { list-style-type: circle; } .entry ul ul li { list-style-type: disc; } .entry ol { margin: 0 0 15px 0; padding: 0 0 0 30px; } .entry ol ol { margin: 0; } .entry ol li { list-style-type: upper-latin; } .entry ol li ol li { list-style-type: lower-latin; } /* 3.2 Images */ .entry img { padding: 5px; border: 1px solid #ccc; } img.wp-smiley { padding: 0; border: none; } .alignleft { float: left; width: auto; margin: 10px 20px 10px 0; } .alignright { float: right; width: auto; margin: 10px 0 10px 20px; } .aligncenter { text-align: center; margin-bottom:10px; } .wp-caption { padding: 1px; text-align:center; background:#F8F8F4; border: solid 1px #e6e6e6; } .wp-caption img{ margin:0; padding:4px 0; background:none; border:0; } .wp-caption-text { margin:0; padding:0; font-size:11px; text-align:center; } .wp-caption a:hover { border:none !important; } /* 3.3 Pagination / WP-Pagenavi */ .more_entries {font-size:12px; line-height:18px; font-family:Georgia, serif !important; font-style:italic !important;} .more_entries a { display: block; margin: 0; background:#efefef; padding:4px 8px; color:#777; text-shadow: #fff 0px 1px 0px; border:1px solid #ccc;} .more_entries a:hover { background:#ddd; text-shadow: #fff 0px 1px 0px; border:1px solid #ccc;} .more_entries .fl a { background-image:url(images/ico-arrow-left.png); background-repeat:no-repeat; background-position:8px center; padding-left:20px; } .more_entries .fr a { background-image:url(images/ico-arrow-right.png); background-repeat:no-repeat; background-position:95% center; padding-right:20px; } .more_entries .wp-pagenavi { margin: 15px 0 0 0; text-align: right; } .more_entries .wp-pagenavi a:link, .more_entries .wp-pagenavi a:visited { display: inline; text-decoration: none; background: #efefef;color: #777; padding: 4px 8px; border:1px solid #ccc; } .more_entries .wp-pagenavi .current, .more_entries .wp-pagenavi .on, .more_entries .wp-pagenavi a:hover { padding: 4px 8px; background: #ddd; color:#777; text-shadow: #fff 0px 1px 0px; border:1px solid #ccc; } .more_entries .wp-pagenavi .extend, .more_entries .wp-pagenavi span.pages { background: #efefef;color: #777; padding: 4px 8px; text-shadow: #fff 0px 1px 0px; border:1px solid #ccc;} /* 3.7 Buttons / Banners */ .entry a.btn, input.submit { background:url(images/bg-button.png) no-repeat center 0; padding:4px 8px; color:#fff; font:Georgia, serif; font-size:12px; font-style:italic; text-shadow: #777 0px 1px 0px; background-color:#838C1C; border:1px solid #626915; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; } .entry a.btn:hover { cursor:pointer; opacity:0.8; } .post #share { position:relative; height:35px; margin:20px 0 0; padding:1px 0 0 55px; } .post #share .banner { background:url(images/banner-share.png) no-repeat; position:absolute; top:0; left:-40px; width:78px; height:36px; color:#fff; font:bold italic 14px Georgia, serif; text-shadow:#555 0 1px ; line-height:29px; padding:0 0 0 16px;} .post #share a img { padding:0 10px 0 0; opacity:0.7; } .post #share a:hover img { padding:0 10px 0 0; opacity:1; } .featured-banner { background:url(images/banner-featured.png) no-repeat; position:absolute; top:14px; left:-14px; width:100px; height:36px; color:#fff; font:bold italic 14px Georgia, serif; text-shadow:#555 0 1px ; line-height:29px; padding:0 0 0 16px; z-index:99;} /*-------------------------------------------------------------------------------------------*/ /* 4. WIDGETS */ /*-------------------------------------------------------------------------------------------*/ /* 4.2 Generic Widgets */ .widget { position:relative; margin: 0 0 20px 0; background:#fefefe url(images/bg-box.png) repeat-x; padding:0; border:1px solid #fff; color:#555; font-family:Georgia, "Times New Roman", Times, serif; line-height:20px; } .widget h3 { font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:14px; color:#666; margin: 0; padding:14px 15px 0; height:30px; background:url(images/bg-widget-title.png) repeat-x; } .widget .textwidget p { padding: 5px 0; } .widget ul, .widget div, .widget p { padding:0px 15px 10px; } .widget ul { clear:both; margin:5px 0;} .widget ul li { background:url(images/ico-bullet.png) no-repeat 4px 14px; padding-left:20px; border-bottom: 1px solid #ededed; } .widget ul li a { padding:0px 0; line-height: 30px; text-decoration: none; color:#777; } .widget ul li a:hover { color: #000; border-bottom:1px dotted; } .widget ul ul { margin:0; padding:0; border-top: none; } .widget ul ul li { border: none; } .widget_recent_comments li, #twitter li { padding: 6px 0; line-height: 18px; border-bottom: 1px solid #eee; } /* RESET LI STYLING FOR RECENT COMMENT & TWITTER */ .widget_recent_comments li a, #twitter a { display: inline; padding: 0; line-height: 18px !important; } /* RESET <A> STYLING FOR RECENT COMMENT & TWITTER */ .widget_tag_cloud a { color:#777; } .widget_tag_cloud div { padding-top:5px; } #advert_300x250 {background:none; border:none; } #advert_300x250 a:hover {border:none;} #advert_125x125 { padding:18px 0 5px 18px; } #advert_125x125 img { padding:0 8px 8px 0; } #advert_125x125 a:hover {border:none;} /* 4.2 Specific Widgets */ /* WIDGET FORMS */ .widget #searchform { margin: 15px 0 0 15px; } .widget select { margin: 15px 0 15px 15px; } .widget input#s, .widget input.field, .widget select { width: 250px; padding: 3px 0 3px 5px; border: 1px solid #ccc; } .widget input.submit {} .widget .screen-reader-text { display: none; } #search_main form div{position:relative;height:33px;;margin-bottom:25px;} #search_main input.field{ float:left; border: 1px solid;border-top-color: #C5C3C3;border-left-color: #C5C3C3;border-right-color: #EDEDED;border-bottom-color: #EDEDED;background: #fff;font-family:Georgia, "Times New Roman", Times, serif;font-size: 12px;padding: 7px 10px; font-style:italic; margin:0 5px 5px 0; color:#999; width:170px;} #searchform .submit { padding:5px 8px; font-family:Georgia, serif; } #searchform .submit:hover { opacity:0.8; cursor:pointer; } /* FLICKR */ #flickr h3 {} #flickr h3 span{color:#0061D8;} #flickr h3 span span{color:#FF1183;} #flickr .flickr_badge_image { float: left; margin: 0; padding:0; } #flickr .wrap { margin: 10px; position: relative; padding: 0; } #flickr a img { float: left; margin: 5px 0 5px 10px; display: block; border: #CECFC6 1px solid; padding: 3px; width:70px; height:70px; } #flickr a:hover img { border:#A8AA99 1px solid; } /* LIFESTREAM */ .widget_lifestream ul li { border-bottom: 1px solid #e0e6e6; } .widget_lifestream ul li a { border:none; background:none!important; } .widget_lifestream ul .lifestream_meta { color: inherit; } /* CALENDAR */ #wp-calendar{width:95%;margin-bottom:15px;clear:both;padding:0;} #wp-calendar caption{padding:10px;} #wp-calendar th,#wp-calendar td{text-align:center;background:#E7E7E7;color:#9E9E9E;padding:5px;} #wp-calendar td{background:transparent;} #wp-calendar td,table#wp-calendar th{padding:3px 0;} /* AUTHOR */ #author .widget_title img { vertical-align:top; margin-right:10px; margin-top:-2px; } #author .wrap { padding:10px 5px; } #author img.avatar { padding:2px; background:#fff; border:1px solid #ddd; } #author .author-info { float:left; width:190px; font-family:Verdana, Geneva, sans-serif; font-size:10px; text-transform:uppercase; line-height:16px; padding:2px 0 0 0px; color:#777; } #author .author-desc { font-style:italic; } /* 4.3 Sidebar Tabs */ #tabs { background:#FEFEFE url(images/bg-box.png) repeat-x;; height:auto !important; border:1px solid #fff;display: block; } #tabs .inside { padding:5px !important;padding: 2px; padding-top:0 !important; } #tabs ul.wooTabs { height:53px !important; background: url(images/bg-widget-title.png) repeat-x center top; padding:0 10px; } #tabs ul.wooTabs li { float: left; display:inline;font-family:Verdana, Geneva, sans-serif; font-size: 10px; color: #ffffff; margin:0px 1px 0px 0px !important; cursor: pointer; } #tabs ul.wooTabs li a.selected, #tabs ul.wooTabs li a:hover { color:#838C1C; text-decoration:none; background:url(images/bg-tabs-selected.png) no-repeat center 41px; } #tabs ul.wooTabs li a { color:#777; line-height: 42px; display: block;float: left;padding: 0 10px 10px; text-transform:uppercase; } #tabs #tagcloud, #tabs .inside li { padding:10px; font-family:Georgia, serif;} #tabs .inside ul { margin:0 5px 5px; } #tabs .inside li { border-bottom:1px solid #EDEDED } #tabs .inside li a { color:#555; font-weight:bold; line-height:20px; line-height:18px; } #tabs .inside a:hover{ border-bottom:1px dotted;} #tabs .inside li span.meta { display:block; font-size:10px; text-transform:uppercase; color:#777; font-family:Verdana, Geneva, sans-serif; line-height:20px; } #tabs .inside li img.avatar, #tabs .inside li img.thumbnail { border: 1px solid #ddd; padding: 2px; background-color: #ffffff; float: left; margin: 0 8px 0 0; } /* 4.4 Sidebar Video */ #video .inside { padding:0; } #video .inside div { padding:7px; } #video ul.wooTabs { margin:0; padding:0 14px 5px; } #video ul.wooTabs li { background:#fafafa; border:1px solid #eee; padding:0 10px; margin-bottom:5px; } /*-------------------------------------------------------------------------------------------*/ /* 5. COMMENTS */ /*-------------------------------------------------------------------------------------------*/ /* 5.1 Comments */ #comments {background:#ececec; border-top:1px solid #f5f5f5; border-bottom: 1px solid #dadada; position:relative;margin-top:20px;padding:25px 25px 20px;} #comments h3{ font-size:16px; color:#777; padding-bottom:10px; } #comments .comment{margin-top:10px;width:100%;list-style-type:none;} #comments .avatar { float: left; } #comments img.avatar { background:#fff; padding:4px; border:1px solid #ddd; } #comments .comment-right { margin-left: 95px; } #comments .comment .comment-container { padding: 3px 0; } #comments .comment-head { background:#e4e4e4 url(images/bg-comment-head.png) repeat-x bottom; border:1px solid #d8d8d8; height:40px; line-height:40px; padding:0 15px;margin: 0; } #comments .comment-head .name { font-family:Georgia, serif; font-style:italic; margin: 0 0 -5px 0; font-weight: bold; font-size: 12px; } #comments .comment-head .date { margin-right:10px; } #comments .comment-head .date a, #comments .comment-head .edit { font-size: 11px; color:#777; } #comments .comment-entry { background:#fff; border:1px solid #d8d8d8; color:#555; padding:20px 15px 10px 15px; border-width:0 1px 1px 1px; font-size:14px; line-height:20px; } #comments .comment-entry p { margin: 0 0 10px 0;} #comments ul.children{background: url(images/ico-comment-reply.png) no-repeat 0 25px; padding:0 0 0 25px;margin:0;} #comments .cancel-comment-reply{margin-bottom:10px;} #comments .navigation { } #comments .navigation a{ display: block; margin: 15px 0 0 0; text-decoration: none; } #comments .navigation a:hover{} #comments a.comment-reply-link { background:url(images/bg-button.png) no-repeat center 0; padding:2px 6px; color:#fff; font:Georgia, serif; font-size:12px; font-style:italic; text-shadow: #777 0px 1px 0px; background-color:#aaa; border:1px solid #999; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; } #comments a.comment-reply-link:hover { cursor:pointer; opacity:0.8; } /* 5.2 Comments Form */ #respond { background:#ececec; border-top:1px solid #f5f5f5; margin: 0; padding:25px 25px 20px; border-bottom: 1px solid #bbb;} #comments #respond { padding:20px 0; } #respond h3 { font-size:16px; color:#777; padding-bottom:10px; } #respond .left { float:left; width:200px; } #respond .right { float:left; width:380px; } #commentform { margin: 15px 0 0 0; font-family:Arial, Helvetica, sans-serif; } #commentform input.txt { color:#555;width:180px; margin: 0 5px 10px 0; padding: 7px 5px; border: 1px solid #eee; } #commentform textarea { color:#555;width: 95%!important; padding: 5px; border: 1px solid #eee; } #commentform #submit { margin: 15px 0 0 0; } #commentform input.txt, #commentform textarea { border: 1px solid;border-top-color: #C5C3C3;border-left-color: #C5C3C3;border-right-color: #EDEDED;border-bottom-color: #EDEDED; } #commentform #submit { font-family:Georgia, serif; background:url(images/bg-button.png) no-repeat center 0; padding:4px 8px; color:#fff; font:Georgia, serif; font-weight:bold; font-size:12px; font-style:italic; text-shadow: #555 0px 1px; background-color:#6694ac; border:1px solid #557c90; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; } #commentform #submit:hover { cursor:pointer; opacity:0.8; } /* 5.2 Pingbacks / Trackbacks */ h3#pings { margin: 20px 0 10px 0; } .pinglist li { margin: 0 0 0 20px; list-style-type: decimal; } .pinglist li .author { font-weight: bold; font-size: 15px; } .pinglist li .date { font-size: 11px; } .pinglist li .pingcontent { display: block; margin: 10px 0; } /*-------------------------------------------------------------------------------------------*/ /* 6. MISC */ /*-------------------------------------------------------------------------------------------*/ #lbCenter, #lbBottomContainer{ z-index:9999 !important; } #lbOverlay { z-index:9998 !important; } could anyone tell me if there is something out of order here;? css Code: Original - css Code .heav {color: #333333; font-weight: bold; } .mast {color: #333333; font-size: x-small; font-family: Arial, Helvetica, sans-serif; } hr.center {color: #dddddd} .header {background: #CCCCCC; border-top: 2px solid #BB2F00; margin: 3px 0 0 0; padding: 3px; } .footer {background: #BB2F00; color: #FFFFFF; border-top: 2px solid #CCCCCC; border-bottom: 2px solid #CCCCCC; margin: 8px 0 0 0; padding: 2px; font-size: x-small; font-weight: normal; font-style: normal; } .carL {color: #999999; font-size: x-small; font-weight: normal; font-style: normal; clip: rect(auto auto auto auto); font-family: Arial, Helvetica, sans-serif;} .pvc {color: #BB2F00; font-weight: bold;} .talign {text-align: center;} .clip {color: #FFFFFF; font-size: small; background-color: #333333; clip: rect(auto auto auto auto); } .margin {margin: 5px;}
hi all, i have a simple form with 5 fields username,email id,password,retype password and phone no.they all to be displayed in correct format as one after other.my am getting error for last field i.e.,phone no is is not displayed properly how to display the 5th field in correct format...below is the code i have written in css.. if there are more than 4 fields tell me how to display all in correct format. .form label { float:left; width:100px; padding:10px 10px 0 10px 0; font-weight:bold; } I'm new to CSS but have read more in the past two days than I care to tell you about. I'm stuck on how to reference a deeply nested element that is automatically generated by a drupal view. The problem lies with the fact that I can select it directly and style it but other views (pages) are rendered with the exact same attributes (Name, Class, and ID). The Class of the page or view is different but is nested about seven tags back. My question is: How can I select the Element to be styled when the only differentiator is so far back in the hierarchy of the page without using a local or inline CSS? The following are snippets of the two pages that share the same Element attributes (<select name="filter0" class="form-select" id="edit-filter0" >) Thanks for any suggestions you might have. Mike ********* First page ******************* Code: <div class='view view-firstview'> <form action="URL" method="get" id="views-filters"> <div> <table> <thead> </thead> <tbody> <tr class="odd"> <td> <div class="form-item"> <select name="filter0" class="form-select" id="edit-filter0" > <option value="**ALL**"><All></option> </select> </div> </td> <td> <div class="form-item"> <select name="filter1" class="form-select" id="edit-filter1" > <option value="**ALL**"><All></option> </select> </div> </td> <td> <input type="submit" id="edit-submit" value="Submit" class="form-submit" /> </td> </tr> </tbody> </table> </div> </form> </div> ******** Second Page ******************** Code: <div class='view view-secondview'> <form action="URL" method="get" id="views-filters"> <div> <table> <thead> </thead> <tbody> <tr class="odd"> <td> <div class="form-item"> <select name="filter0" class="form-select" id="edit-filter0" > <option value="**ALL**"><All></option> </select> </div> </td> <td> <div class="form-item"> <select name="filter1" class="form-select" id="edit-filter1" > <option value="**ALL**"><All></option> </select> </div> </td> <td> <input type="submit" id="edit-submit" value="Submit" class="form-submit" /> </td> </tr> </tbody> </table> </div> </form> </div> I have been scouring this forum trying to find the correct answer. I have a list of links in an unordered list. I am using css to style the list. The one thing I can't seem to figure out is, if I have the wrong doctypes or my css is wrong. I have replaced the bullet for the li tags with background images. One is just a line the other is a line with an arrow. I am trying to push the type over a little past my arrow. In the css I have put a padding-left: 1 em; on the li tag. It works in IE but not firefox, so I added padding-left: 10; This seemed to push the li tag over in firefox. The next problem was when I went to put the doc types in. I put <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> above the <html> tag. Once again it worked in IE but not Firefox. I took out the doctype tag and inserted <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> inside the <head> tags. This seems to work in both IE and Firefox. Is this an incorrect way to put a doc type in? Below please see the css I am using and my header info Code: /*right hand nav bar*/ #nav ul{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; line-height: 13px; list-style-type: none; padding: 0; margin: 0; } #nav li{ background: url(../images/divider_rht_nav.gif) repeat-x bottom; padding-top: 0.3em; padding-bottom: 0.6em; padding-left: 1 em; /*this is for IE*/ padding-left: 10; /*this is for FireFox*/ } #nav a { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; line-height: 13px; color: #325087; } #nav a:hover { color: #CC0000; line-height: 13px; } #nav li.selected { color: #174A4A; font-weight: bold; background-image: url(../images/divider_rht_nav_arrow.gif); } .heading { font-weight: bold; color: #174A4A; font-size:10px; } .headingspace { font-weight: bold; color: #174A4A; font-size:10px; margin-top: 1.5em; } /*end style*/ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Admin Area - Login</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="../css/master.css" rel="stylesheet" type="text/css" media="screen"> <link href="../css/master_print.css" rel="stylesheet" type="text/css" media="print"> <script language="javascript" type="text/javascript" src="scripts/validate_admin_login.js"></script> </head> Lately, I see articles everywhere telling us to ditch tables and use CSS to position forms. I don't necessarily have a problem with using CSS although I'm admitedly a bit new to using it for anything more than basics like sizing, color, borders and backgrounds. But my basic question is why ditch the tables? Tables have been around since the inception of html. They work with any browser you care to name and the provide a valid function allowing developers to position things on the screen in a pleasing manner. The flow of data in tables is simple, so the developer and usually the user can predict where the cursor will go when the user hits the tab key. There are certainly problems with tables, such as text wrapping or being truncated when the screen resolution is lower than the developer designed for and the positioning is not as clean as absolute positioning with CSS. Absolute positioning with CSS can lead to its own problems though. If the user has fonts set to a different size or odd video settings the size of the object positioned may not be large enough to display the text. This can cause object to overlap making the page unreadable. It may sound as if I'm just trying to hang on to the old way of doing things, and there may be a bit of truth in that, but more I'm asking for valid reasons to change the way I do things. I actually like finding new ways of doing things but there has to be a benefit to it. How will swithing to CSS layout instead of tables make my pages better for my users or easier to develop and maintain for me? I look forward to your responses. I am trying to define 5 different types of links in one style sheet. I have three questions. 1. How would I declare it in the style sheet? I have tried the following, which does not work: a.typea { font-weight: bold; color: #E8C960; text-decoration: underline; } 2. How would I refer to the class in the HTML? I have tried the following which does not work: <a href="link.htm" class="typea">Some Link</a> and <span class="typea"><a href="link.htm">Some Link</a> 3. Can you assign a rollover class to link classes? I tried the following which does not work: a.typea:hover { font-weight: bold; color: #06FF00; text-decoration: none; } Any help on this is appreciated. I can't be limited to only one type of link throughout an entire dynamic website. D Suppose I have a few tables I want to format vertically. If they are quite wide, chances are simply doing <table id="a">...</table> this will probably happen automatically. Ever, with a wide enough screen they might format horizontally. To fix this, I could to the following: <table id="a">...</table><br><table id="b">...</table><br><table id="c">...</table> but unfortunately, <br> also adds extra unwanted spacing. Is there a was to CSS the <br> tag to avoid this, or is there a CSS method to indicate that each successive table should be below the last, not to the right? Skolem |