CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 14th, 2012, 01:25 PM
maineman maineman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 112 maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 27 m 57 sec
Reputation Power: 5
Text color help

I have a text link menu I want to change the text to white. I also want to be able to adjust the width of the background color, currently is spans the entire page. I would like to make the background color just as wide as the text menu. Here is my current CSS and text menu code.

text code:

PHP Code:
<class="tcolor"><a style="text-decoration:none" href="index.php?page=home_page">Home Page</a> |  <a style="text-decoration:none" href="index.php?page=site_layout">Site Layout</a> |  <a style="text-decoration:none" href="index.php?page=control_structures">Control Structures</a> | <a style="text-decoration:none" href="index.php?page=string_functions">String Functions</a> | <a style="text-decoration:none" href="index.php?page=web_forms">Web Forms</a> | <a style="text-decoration:none" href="index.php?page=midterm_assessment">Midterm Assessment</a> | <a style="text-decoration:none" href="index.php?page=state_information">State Information</a> | <a style="text-decoration:none" href="index.php?page=user_templates">User Templates</a> | <a style="text-decoration:none" href="index.php?page=final_project">Final Project</a></p


CSS Code for text links:

PHP Code:
#text_links
    
{
        
background-color:blue;
        
color:white;
        
text-align:center;
        
font-family:"Times New Roman";
        
font-size:14px;        
    } 

Reply With Quote
  #2  
Old October 14th, 2012, 05:24 PM
_voidPirate _voidPirate is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Location: Irvine, CA
Posts: 1 _voidPirate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 10 sec
Reputation Power: 0
Send a message via Skype to _voidPirate
Hope this helps.

Code:
<!DOCTYPE html>

<head>
<meta charset="utf-8" >

<style>

<!-- wrapper for the entire site-->
#wrapper{
	;
	margin-left:none;
	margin-right:none;
	width:80%;
	}
<!-- link styles -->	
a{
	color:#FFF;
	}
	
<!-- this is how a class is declared-->
.tcolor{
	background-color:#00F;
	color: white;
	text-align:center;
	font-family:Verdana, Geneva, sans-serif;
	font-size:16px;
	}
	
</style>
<title>Untitled Document</title>
</head>

<body>
<div id="wrapper">
<p class="tcolor"><a style="text-decoration:none" href="index.php?page=home_page">Home Page</a> |  <a style="text-decoration:none" href="index.php?page=site_layout">Site Layout</a> |  <a style="text-decoration:none" href="index.php?page=control_structures">Control Structures</a> | <a style="text-decoration:none" href="index.php?page=string_functions">String Functions</a> | <a style="text-decoration:none" href="index.php?page=web_forms">Web Forms</a> | <a style="text-decoration:none" href="index.php?page=midterm_assessment">Midterm Assessment</a> | <a style="text-decoration:none" href="index.php?page=state_information">State Information</a> | <a style="text-decoration:none" href="index.php?page=user_templates">User Templates</a> | <a style="text-decoration:none" href="index.php?page=final_project">Final Project</a></p>  

</div>
</body>
</html>

Reply With Quote
  #3  
Old October 14th, 2012, 05:45 PM
maineman maineman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 112 maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 27 m 57 sec
Reputation Power: 5
thanks for that. What is the purpose of the wrapper?

Reply With Quote
  #4  
Old October 14th, 2012, 06:27 PM
maineman maineman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 112 maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 27 m 57 sec
Reputation Power: 5
ok ive got a <ul> vertical menu formatted as follows in CSS:
PHP Code:
.glossymenu{
list-
style-typenone;
margin5px 0;
padding0;
width145px;
bordernone;
border-bottom-width0;
}

.
glossymenu li a{
backgroundwhite url(Images/glossyback.gifrepeat-x bottom left;
fontbold 13px "Lucida Grande""Trebuchet MS"VerdanaHelveticasans-serif;
colorwhite;
displayblock;
widthauto;
padding3px 0;
padding-left10px;
text-decorationnone;

}


html .glossymenu li a/*IE only. Actual menu width minus left padding of A element (10px) */
width120px;
}

.
glossymenu li a:visited, .glossymenu li a:active{
colorwhite;
}

.
glossymenu li a:hover{
background-imageurl(Images/glossyback2.gif);



How can I apply the same formatting to the text menu at the beginning of this thread?

Reply With Quote
  #5  
Old October 15th, 2012, 10:52 PM
voidPirate voidPirate is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 15 voidPirate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 27 m 53 sec
Reputation Power: 0
Send a message via Skype to voidPirate
I am not sure what you are asking. The wrapper was to wrap the body of the HTML document to give it the middle alignment. Do you want the menu to have middle alignment?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Text color help

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap