CSS conflicting styles

This is a discussion on "CSS conflicting styles" within the Web Page Design section. This forum, and the thread "CSS conflicting styles are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 28th, 2008, 12:46
New Member
Join Date: Mar 2008
Location: Portugal
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile CSS conflicting styles

Hi, there

I'm using css on my xhtml site at http://ttaxi.pt

But at http://ttaxi.pt/Book-now-car-hire-au...ookingform.php there is a conflit that I can not identify.

The page use a css file and the calendar use another one, try the calendar to see the problem, can any one give me a idea to resolv this conflit.

Thank you very much.

Baptista
Reply With Quote

  #2 (permalink)  
Old Mar 28th, 2008, 14:59
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,011
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: CSS conflicting styles

You need to put
Code: Select all
<style type="text/css">@import url("javascript/jscalendar-1.0/calendar-green.css");</style>
in the <head> of your HTML, not the <body>!
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #3 (permalink)  
Old Mar 28th, 2008, 16:01
New Member
Join Date: Mar 2008
Location: Portugal
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS conflicting styles

tHANKS FOR YOUR HELP BUT IT DIDN'T WORKED.

I PAST BOTH CODES MAYBE YOU CAN IDENTIFY ANY CONFLICT, I CAN NOTE FIND NATHING BUT I VERY NEW ON THIS....


XHTML .CSS FILE:
Code: Select all
/* ttaxi - an open source xhtml/css website layout by Andreas Viklund - http://2008.ttaxi.pt . Free to use for any purpose as long as the proper credits are given for the original design work.
Version: 1.1, November 28, 2005 */
 
body{
background:#e0e0e0 url(img/bodybg.jpg) repeat;
color: #004000;
font:76% Georgia,Verdana,Tahoma,Arial,sans-serif;
margin:0;
padding:0;
text-align:center;
}
p{
line-height:1.5em;
margin:0 0 15px;
}
a{
color: #CC6600;
font-weight:700;
text-decoration:none;
}
a:hover{
color: #004000;
text-decoration:underline;
}
hr{
height:1px;
margin:10px 0;
width:98%;
}
dt{
font-weight:700;
}
dd{
margin:1px 0 12px 15px;
}
#container{
background:#c0c0c0 url(img/bodybg.jpg) repeat-y;
margin:0 auto;
text-align:left;
width:752px;
}
#sitename{
background:url(img/leaves.jpg) top center no-repeat;
color: #FFFFFF;
font-weight:400;
height:80px;
margin:0 20px 10px 0;
text-align:center;
}
#sitename h1{
font-size:2.2em;
margin:0;
padding-top:20px;
}
#sitename span{
font-size: 1.0em;
letter-spacing:-1px;
margin:0;
}
#nav{
background:#e0e0e0 url(img/bodybg.jpg) repeat-;
float:left;
width:752px;
}
#nav ul{
list-style:none;
margin:0;
padding:0;
}
#nav a{
background:url(img/tabs.jpg) no-repeat 100% 0;
color: #CC6600;
display:block;
font-size:1.2em;
letter-spacing:-1px;
padding:7px 20px 4px 11px;
text-decoration:underline;
}
#nav a:hover{
color: #004000;
text-decoration:underline;
}
#nav li{
background:url(img/tabs.jpg) no-repeat 0 0;
float:left;
margin:0 5px 0 0;
padding:0 0 0 9px;
}
#nav #current{
background:url(img/tabs.jpg) no-repeat 0 -41px;
}
#nav #current a{
background:url(img/tabs.jpg) no-repeat 100% -41px;
color: #004000;
padding:7px 20px 5px 11px;
}
#wrap1{
background:#ffffff url(img/innerbg.jpg) repeat-y;
border-bottom:1px solid #808080;
border-left:1px solid #808080;
border-right:1px solid #808080;
clear:both;
padding:0;
width:750px;
}
#wrap2{
background:url(img/header.jpg) top left no-repeat;
padding:10px;
width:730px;
}
#header{
height:30px;
position:relative;
width:730px;
}
#header h1{
float:left;
font-size:1.4em;
margin:0;
width:180px;
}
#topbox{
color: #808080;
margin:0 0 4px;
text-align:right;
}
#topbox a{
color: #CC6600;
}
#topbox a:hover{
color: #004000;
text-decoration:underline;
}
#leftside{
float:left;
margin:-15px 0 0;
width:145px;
}
#leftside h1{
font-size:1.4em;
font-weight:400;
}
#leftside img{
border:0px;
}
#rightside{
float:right;
margin:40px 15px 20px 0;
width:130px;
}
#rightside h1{
font-size:1.4em;
font-weight:400;
margin:0 0 12px;
}
#rightside p{
font-size:0.9em;
margin:2px 0 12px 10px;
}
#rightside img{
border:0px solid #fa9035;
margin:10px 0 5px 5px;
padding:2px;
}
#content{
margin:45px 160px 0 180px;
}
#contentalt{
margin:45px 15px 0 180px;
}
#content p,#contentalt p{
margin:8px 0 0 10px;
}
#content h1,#contentalt h1{
color: #002000;
font-size:2em;
font-weight:400;
margin:15px 0 10px;
padding:0;
}
#content h2,#contentalt h2{
color: #002000;
font-size:1.5em;
font-weight:400;
margin:20px 0 10px;
padding:0;
}
#content img,#contentalt img{
border:0px solid #fa9035;
float:left;
margin:5px 15px 6px;
}
#footer{
clear:both;
color: #A0A0A0;
font-size:0.7em;
height:26px;
margin-top:20px;
padding:1px;
text-align:center;
width:730px;
}
#footer a{
color: #CC6600;
font-weight:400;
font-weight: 700;
}
#footer a:hover{
color: #004000;
text-decoration:underline;
}
.menublock{
margin-bottom:10px;
}
.nav{
color: #D04A10;
display:block;
font-size:1.1em;
font-weight:700;
margin-bottom:1px;
padding:2px 2px 2px 10px;
position:relative;
text-decoration:none;
width:125px;
}
.nav:hover{
border:1px solid #fa9035;
color: #004000;
padding:1px 1px 1px 9px;
}
.sub{
font-size:0.9em;
margin-left:20px;
padding:1px 1px 1px 6px;
width:105px;
}
.sub:hover{
border:1px solid #fa9035;
color: #004000;
padding:0 0 0 5px;
}
.intro{
font-weight:700;
}
.active{
border:1px solid #fa9035;
padding:1px 1px 1px 9px;
}
.box{
background:#f8f8f8 url(img/boxbg.gif) top left repeat-y;
border:1px solid #d0d4d4;
color:#505050;
margin:15px auto;
padding:10px 10px 10px 20px;
width:75%;
}
.photo{
margin:5px auto 15px;
padding:5px;
}
.smallcaps{
font-variant:small-caps;
}
.mini{
color: #A0A0A0;
font-size:0.75em;
font-weight:400;
line-height:1.2em;
margin:20px 0 10px 8px;
}
.small{
font-size:0.85em;
}
.large{
font-size:1.4em;
}
.soft{
color: #808080;
}
.normal{
font-weight:400;
}
.sharp{
color: #101010;
}
.center{
text-align:center;
}
.hide{
display:none;
}
CALENDAR.CSS
Code: Select all
/* The main calendar widget.  DIV containing a table. */
div.calendar { position: relative; }
.calendar, .calendar table {
  border: 1px solid #565;
  font-size: 11px;
  color: #000;
  cursor: default;
  background: #efe;
  font-family: tahoma,verdana,sans-serif;
}
/* Header part -- contains navigation buttons and day names. */
.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
  text-align: center;    /* They are the navigation buttons */
  padding: 2px;          /* Make the buttons seem like they're pressing */
  background: #676;
  color: #fff;
  font-size: 90%;
}
.calendar .nav {
  background: #676 url(menuarrow.gif) no-repeat 100% 100%;
}
.calendar thead .title { /* This holds the current "month, year" */
  font-weight: bold;      /* Pressing it will take you to the current date */
  text-align: center;
  padding: 2px;
  background: #250;
  color: #efa;
}
.calendar thead .headrow { /* Row <TR> containing navigation buttons */
}
.calendar thead .name { /* Cells <TD> containing the day names */
  border-bottom: 1px solid #565;
  padding: 2px;
  text-align: center;
  color: #000;
}
.calendar thead .weekend { /* How a weekend day name shows in header */
  color: #a66;
}
.calendar thead .hilite { /* How do the buttons in header appear when hover */
  background-color: #afa;
  color: #000;
  border: 1px solid #084;
  padding: 1px;
}
.calendar thead .active { /* Active (pressed) buttons in header */
  background-color: #7c7;
  padding: 2px 0px 0px 2px;
}
.calendar thead .daynames { /* Row <TR> containing the day names */
  background: #dfb;
}
/* The body part -- contains all the days in month. */
.calendar tbody .day { /* Cells <TD> containing month days dates */
  width: 2em;
  color: #564;
  text-align: right;
  padding: 2px 4px 2px 2px;
}
.calendar tbody .day.othermonth {
  font-size: 80%;
  color: #bbb;
}
.calendar tbody .day.othermonth.oweekend {
  color: #fbb;
}
.calendar table .wn {
  padding: 2px 3px 2px 2px;
  border-right: 1px solid #8a8;
  background: #dfb;
}
.calendar tbody .rowhilite td {
  background: #dfd;
}
.calendar tbody .rowhilite td.wn {
  background: #efe;
}
.calendar tbody td.hilite { /* Hovered cells <TD> */
  background: #efd;
  padding: 1px 3px 1px 1px;
  border: 1px solid #bbb;
}
.calendar tbody td.active { /* Active (pressed) cells <TD> */
  background: #dec;
  padding: 2px 2px 0px 2px;
}
.calendar tbody td.selected { /* Cell showing today date */
  font-weight: bold;
  border: 1px solid #000;
  padding: 1px 3px 1px 1px;
  background: #f8fff8;
  color: #000;
}
.calendar tbody td.weekend { /* Cells showing weekend days */
  color: #a66;
}
.calendar tbody td.today { font-weight: bold; color: #0a0; }
.calendar tbody .disabled { color: #999; }
.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
  visibility: hidden;
}
.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
  display: none;
}
/* The footer part -- status bar and "Close" button */
.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
  text-align: center;
  background: #565;
  color: #fff;
}
.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
  padding: 2px;
  background: #250;
  color: #efa;
}
.calendar tfoot .hilite { /* Hover style for buttons in footer */
  background: #afa;
  border: 1px solid #084;
  color: #000;
  padding: 1px;
}
.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
  background: #7c7;
  padding: 2px 0px 0px 2px;
}
/* Combo boxes (menus that display months/years for direct selection) */
.calendar .combo {
  position: absolute;
  display: none;
  top: 0px;
  left: 0px;
  width: 4em;
  cursor: default;
  border: 1px solid #565;
  background: #efd;
  color: #000;
  font-size: 90%;
  z-index: 100;
}
.calendar .combo .label,
.calendar .combo .label-IEfix {
  text-align: center;
  padding: 1px;
}
.calendar .combo .label-IEfix {
  width: 4em;
}
.calendar .combo .hilite {
  background: #af8;
}
.calendar .combo .active {
  border-top: 1px solid #6a4;
  border-bottom: 1px solid #6a4;
  background: #efe;
  font-weight: bold;
}
.calendar td.time {
  border-top: 1px solid #8a8;
  padding: 1px 0px;
  text-align: center;
  background-color: #dfb;
}
.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
  padding: 0px 3px 0px 4px;
  border: 1px solid #898;
  font-weight: bold;
  background-color: #fff;
}
.calendar td.time .ampm {
  text-align: center;
}
.calendar td.time .colon {
  padding: 0px 2px 0px 3px;
  font-weight: bold;
}
.calendar td.time span.hilite {
  border-color: #000;
  background-color: #686;
  color: #fff;
}
.calendar td.time span.active {
  border-color: #f00;
  background-color: #000;
  color: #0f0;
}

Last edited by Aso; Mar 28th, 2008 at 16:10. Reason: Please use bbcode
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Includes from multiple scripts conflicting toasty PHP Forum 6 Oct 14th, 2007 03:34
help with conflicting css moisea Web Page Design 5 Dec 13th, 2006 11:20
styles on tables cyberseed Web Page Design 12 May 23rd, 2006 16:34
Styles in classes? timmytots Web Page Design 4 Dec 2nd, 2005 01:20
Need Help with styles and where to start on this mess... EAndrews Web Page Design 10 Nov 7th, 2005 20:46


All times are GMT. The time now is 07:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43