Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 10-26-2009, 10:23 PM   #1 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 161
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
[SOLVED] CSS Issues

Note: The original files are attached.

The following code is my style.css file:

Code:
* { 
padding : 0;
margin : 0;
} 
body { 
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 13px;
background-image : url(images/bgpage.gif);
background-repeat : repeat-x;
background-color : #000000;
} 
#wrapper { 
margin : 5px auto 5px auto;
width : 790px;
} 
img {
    padding : 0px;
    border : 1px solid #caff7a;
    width: 788px;
    height: 157px;
}  
img.floatTL { 
float : left;
margin-right : 10px;
margin-bottom : 5px;
margin-top : 10px;
margin-left : 5px;
} 
img.floatTR { 
float : right;
margin-left : 7px;
margin-bottom : 0;
margin-top : -2px;
margin-right : 10px;
} 
.clear { 
clear : both;
} 
#header { 
color : #333;
width : 790px;
float : left;
padding : 0;
height : 150px;
background : url(images/header791.gif) no-repeat;
} 
.logo { 
margin-top : 15px;
margin-right : 10px;
float : right;
background-image : url('images/gnome-globe.png');
background-repeat : no-repeat;
background-position : right 0%;
height : 70px;
    width: 5px;
} 
.logo h1#lineone { 
font-size : 1.7em;
font-weight : lighter;
font-family : helvetica, arial, sans-serif;
padding-top : 10px;
padding-left : 5px;
color : #8cbbff;
border : none;
top : 0;
left : 14px;
letter-spacing : -1px;
margin-right : 70px;
margin-top : 5px;
} 
.logo h1#lineone span { 
color : #006699;
} 
.logo h2#linetwo { 
padding-left : 5px;
font-size : 0.9em;
font-family : helvetica, arial, sans-serif;
text-transform : none;
padding-left : 35px;
color : #006699;
} 
#navigation { 
float : left;
width : 790px;
color : #333;
margin : 0 0 0 0;
background : #fff;
} 
.menu { 
margin-left : 5px;
background : #fff url(images/navbar.gif) no-repeat;
width : 782px;
height : 40px;
} 
.menu ul { 
list-style : none;
padding : 10px 0 10px 0;
margin : 0;
text-align : center;
padding: 5px 0em 7px 0em;
    height: 3px;
} 
.menu li { 
padding : 0 1em 0 1em;
display : inline;
} 
.menu li a { 
color : #002870;
font-weight : bold;
text-decoration : none;
font-size : 1em;
} 
.menu li a:hover { 
color : #e78229;
text-decoration : none;
} 
#leftcolumn { 
color : #333;
background : #fff;
margin : 0 0 0 0;
padding : 10px;
min-height : 525px;
width : 200px;
float : left;
} 
#leftbox, #leftbox-2 { 
width : 190px;
min-height : 136px;
color : #ffffff;
padding : 0;
margin : 0;
float : left;
display : inline;
background-image : url(images/graybox-l.png);
background-repeat : no-repeat;
} 
#leftbox-2 { 
margin-top : 15px;
} 
#leftboxbottom, #leftboxbottom-2 { 
height : 15px;
width : 190px;
float : left;
display : inline;
background-image : url(images/graybox-s.png);
background-repeat : no-repeat;
} 
.col-l { 
width : 160px;
float : left;
padding : 10px 0 8px 10px;
} 
.col-l p { 
margin : 11px 0 0 0;
padding : 0;
margin : 11px 0 0 10px;
color : #767676;
} 
.col-l a { 
color : #e78229;
} 
.col-l ul { 
display : list-item;
list-style-type : none;
} 
.col-l li { 
padding-top : 5px;
padding-bottom : 3px;
border-bottom : 1px dotted #336699;
} 
.col-l li a { 
color : #336699;
text-decoration : none;
} 
.col-l li a:hover { 
color : #8eb88f;
} 
#rightcolumn { 
float : right;
color : #333;
background : #fff;
margin : 0 0 0 0;
padding : 0;
height : 545px;
width : 570px;
display : inline;
} 
blockquote { 
margin-top : 14px;
margin-left : 20px;
margin-right : 20px;
margin-bottom : 15px;
text-align : justify;
color : #5376a3;
} 
#doublebox { 
margin-top : 5px;
margin-bottom : 10px;
width : 565px;
} 
.content_right { 
display : inline;
float : right;
width : 200px;
text-align : justify;
margin-right : 5px;
margin-top : 0;
padding-right : 5px;
padding-top : 0;
line-height : 1.5em;
background : url(images/gradboxs.jpg) no-repeat;
} 
.content_rightbot { 
height : 11px;
width : 200px;
background : url(images/gradboxsbottom.jpg) no-repeat;
float : left;
display : inline;
} 
.content_left { 
margin : 0 auto;
display : inline;
float : left;
width : 350px;
text-align : justify;
line-height : 1.5em;
background : url(images/gradboxb.jpg) no-repeat;
} 
.content_leftbot { 
height : 11px;
width : 350px;
background : url(images/gradboxbbot.jpg) no-repeat;
float : left;
display : inline;
} 
.content_left p, .content_right p { 
padding : 5px;
} 
.content_left a { 
float : right;
padding-right : 5px;
color : #ec845b;
} 
.content_right a { 
float : right;
padding-right : 5px;
color : #ec845b;
} 
.content_left h3 { 
padding-left : 5px;
padding-top : 10px;
margin-bottom : 5px;
color : #ec845b;
font-size : 1.2em;
} 
.content_right h3 { 
padding-left : 5px;
padding-top : 10px;
margin-bottom : 5px;
color : #ec845b;
font-size : 1.2em;
} 
.clear { 
clear : both;
} 
h4 { 
color : #80a0ea;
} 
#triplebox {
    width : 560px;
    min-height : 136px;
    background : url(images/bluebox.jpg) no-repeat;
    font-size : 0.75em;
    color : #e1e1e1;
    padding : 0;
    float : left;
    display : inline;
    margin-top: 10px;
    margin-left : 0;
    color : #878787;
    height: 187px;
} 
.col { 
width : 150px;
float : left;
margin-left : 1em;
padding : 5px 0 8px 0;
margin-top : 1.2em;
text-align : justify;
background-repeat : repeat-x;
margin-left : 2em;
margin-top : 1.3em;
    height: 135px;
} 
.col p { 
margin : 11px 0 0 0;
padding : 5px;
} 
#tripleboxbottom { 
height : 11px;
width : 560px;
background-image : url(images/blueboxbottom.jpg);
margin-bottom : 5px;
} 
#footer { 
width : 770px;
clear : both;
height : 40px;
background : url(images/footer790.gif) no-repeat bottom;
margin : 0 0 0 0;
padding-left : 10px;
padding-right : 10px;
} 
#footer p { 
margin : 0;
padding-top : 5px;
text-align : center;
line-height : normal;
font-size : xx-small;
} 
#footer a { 
text-decoration : underline;
color : #e78229;
} 
#footer a:hover { 
text-decoration : none;
}
The following code is my index.html file:

Code:
<!DOCTYPE html 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Red Mountain Aviation - Home</title>
<link rel="stylesheet" type="text/css" href="style.css" />
    <style type="text/css">
        .style1
        {
            text-align: left;
        }
    </style>
</head>

<body>

   <!-- Begin Wrapper -->
   <div id="wrapper">
   
         <!-- Begin Header -->
         <div id="header">
		 
                <img alt="Red Mountain Aviation, LLC" 
                    longdesc="Flight instruction and pilot shop." src="images/Banner.jpg" />
         </div>
		 <!-- End Header -->
		 
		 <!-- Begin Navigation -->
         <div id="navigation">
		 
	        <div class="menu">

	            <ul>
			        <li><a href="#" title="Home">Home</a></li>
                    <li><a href="courses.aspx" title="Courses">Courses</a></li>
			        <li><a href="aircraft.aspx" title="Aircraft">Aircraft</a></li>
                    <li><a href="/pilotshop/default.aspx" title="Pilot Shop">Pilot Shop</a></li>
                    <li><a href="detailing.aspx" title="Aircraft Detailing">Aircraft Detailing</a></li>
                    <li><a href="management.aspx" title="Aircraft Management">Aircraft Management</a></li>
                </ul>
                <ul>
                    <li><a href="aboutus.aspx" title="About Us">About Us</a></li>
                    <li><a href="rates.aspx" title="Rates">Rates</a></li>
                    <li><a href="contactus.aspx" title="Contact Us">Contact Us</a></li>
                    <li><a href="http://www.crosswindsforum.com" title="Crosswinds Forum">Crosswinds Forum</a></li>
		        </ul>
	        </div>
	 
			   
		 </div>
		 <!-- End Navigation -->
		 
		 <!-- Begin Left Column -->
		 <div id="leftcolumn">
		 
			<div id="leftbox">
                        
                <div class="col-l">
	                <ul>
			            <li><a href="discover.aspx" title="Discovery Flights">Discovery Flights</a></li>
			            <li><a href="cirrus.aspx" title="Cirrus Instructor">Cirrus Instructor</a></li>
			            <li><a href="weather.aspx" title="Weather">Weather</a></li>
		            </ul>
                </div>
            </div>
            <div id="leftboxbottom">
            
            </div>
            
                             <br/>

			<div id="leftbox-2">
                <div class="col-l">
	                <p>&nbsp;</p>
                </div>
            </div>
            <div id="leftboxbottom-2">
            
            </div>
		 
		 </div>
		 <!-- End Left Column -->
		 
		 <!-- Begin Right Column -->
		 <div id="rightcolumn">
		       
            <div id="doublebox">

                <div class="content_left">
                    <h3>Welcome to Red Mountain Aviation!</h3>

                    <p>Thank you for considering Red Mountain Aviation for all your aviation needs. We 
                        offer a wide variety of flight instruction courses and learning materials at 
                        very reasonable prices. So take a look around and let us know how we can help 
                        you.</p>
                        &nbsp
                    <div class="content_leftbot">
                        
                    </div>

                </div>
                

                <div class="content_right">

                    <h3>Please Note:</h3>
                    <p class="style1">the site is under construction and that more information on the 
                        courses offered will be updated soon.</p>
                        &nbsp;
                    <div class="content_rightbot">
                        
                    </div>
                </div>
            </div>

                <h4>Crosswinds Forum</h4>	 
                <p>We are very excited to provide a place for pilots. A place for pilots to meet and 
                    share stories, experiences, knowledge and to just plain have fun. General 
                    aviation is under attack and it is our job as an Aviation Community to bring 
                    positive awareness about General Aviation and share these with our neighbor. We 
                    at crosswinds forum invite all Pilots, non-pilots and those interested in 
                    aviation to register and come, post messages and make Crosswinds Forum a 
                    success.<br />
                 </p>

		    <div id="triplebox">
			    <div class="col">
			    <p>
			    </p>
                </div>
			
        </div>
            <div class="clear">
                 
            </div>
		    <div id="tripleboxbottom">
		
		    </div>
		 
		 </div>
		 <!-- End Right Column -->
		 
		 <!-- Begin Footer -->
        <div id="footer">
	        <p id="legal">Copyright &copy; 2009. Red Mountain Aviation. Site by <a href="http://despaincomputing.com">Despain Computing, LLC</a>.</p>
        </div>
		 <!-- End Footer -->
		 
   </div>
   <!-- End Wrapper -->
   
</body>
</html>
My issue lies with the first image on line 23 in the .html file and the img class on line 16 of the .css file.

It seems that the img part of the .css file is governing every image in the .html page. My question is: Is there another thing I can add to the .css file that will let me set different properties for other images in the .html file?

The following code is what I want to add to the .html file on line 74:

Code:
<a href="http://www.weatherforyou.com/weather/utah/axtell.html">
<img src="http://www.weatherforyou.net/fcgi-bin/hw3/hw3.cgi?config=png&forecast=zone&alt=hwivzone&place=axtell&state=ut&country=us&hwvbg=&hwvtc=&daysonly=2&maxdays=5" width="150" height="340" border="0" alt="Axtell, Utah, weather forecast"></a>
Any help would be greatly apreciated. Thank you.

Matthew
Attached Files
File Type: zip Red Mountain Aviation.zip (131.9 KB, 0 views)
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 10-26-2009, 11:25 PM   #2 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,417
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA

My System

Re: CSS Issues

Yes, you can do this by setting a class for each <img /> you wish to define using CSS.

Code:
img.banner{
    padding : 0px;
    border : 1px solid #caff7a;
    width: 788px;
    height: 157px;
}
HTML Code:
 <img class="banner" alt="Red Mountain Aviation, LLC" 
                    longdesc="Flight instruction and pilot shop." src="images/Banner.jpg" />
This is the simplest way to do this efficiently. There are methods using ids, but classes are pretty well the same thing.
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-27-2009, 02:35 PM   #3 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 161
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
Re: CSS Issues

Thanks! That worked like a charm.
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 01:40 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85