473,493 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to expand container with text & links to have different colors?

13 New Member
Hello,
I've been searching over lots of forums for this solution and I can't seem to make any of the solutions work for me. This is my first time I'm posting a question and I'm also far from a css expert , but really am trying to convert my main layouts over from tables. Basically I need my #outerpermiter div which has a vertically repeating background to have a minimum height but expand when needed. Maybe I'm having trouble because I'm using a template, I have a background repeating image or ??? You can see the test site here:

http://www.milwplumbing.net/test/index.html

My 2nd question is there a way to make links on the same page different colors. Currently I have the links color set under page preferences, and my css won't over ride that.
Jan 26 '11 #1
9 2436
JKing
1,206 Recognized Expert Top Contributor
I am assuming you want the gold pipes on the sides to be displayed for the full length of the content area?

Not 100% sure here but I think your absolute positioning that you have set on both the #outerperimeter and #tophalf are affecting the normal flow of the page.

Regarding your second question, your css is applied in the order it is listed in. Also on page CSS overrides external CSS and inline styles override both.

This is the on page CSS you have.
Expand|Select|Wrap|Line Numbers
  1. <style type="text/css">
  2. <!--
  3. body {
  4.     background-image: url();
  5.     background-color: #880000;
  6. }
  7. .italic {
  8.     font-size: 14px;
  9.     color: #000000;
  10.     font-family: Arial, Helvetica, sans-serif;
  11.     font-style: italic;
  12. }
  13. .link {
  14.     font-family: Arial, Helvetica, sans-serif;
  15.     font-size: 18px;
  16.     color: #FFFFFF;
  17. }
  18. .heading {
  19.     font-family: Arial, Helvetica, sans-serif;
  20.     font-size: 18px;
  21.     color: #8F0F11;
  22.     font-weight: bold;
  23.     font-style: italic;
  24. }
  25. .bodytext {
  26.     font-size: 14px;
  27.     font-family: Arial, Helvetica, sans-serif;
  28.     font-weight: normal;
  29.     color: #000000;
  30. }
  31. -->
  32. </style>
  33. <link rel="stylesheet" type="text/css" href="pro_dropdown_2/pro_dropdown_2/pro_dropdown_2.css" />
  34.  
  35. <script src="file:///Macintosh HD/Users/kristalyoung/Desktop/pro_dropdown_2/pro_dropdown_2/stuHover.js" type="text/javascript"></script>
  36. <style type="text/css">
  37. <!--
  38. a:link {
  39.     color: #880000;
  40.     text-decoration: none;
  41. }
  42. a:visited {
  43.     text-decoration: none;
  44.     color: #880000;
  45. }
  46. a:hover {
  47.     text-decoration: underline;
  48.     color: #333333;
  49. }
  50. a:active {
  51.     text-decoration: none;
  52. }
  53. .style1 {color: #000000}
  54. -->
  55. </style>
  56.  
Anything else you have set for links in your style sheet is being overridden by this
Jan 26 '11 #2
Kristal Y
13 New Member
Thank you so much for your input. I got the links styles to work correctly. I don't know if it's the most efficient code, but at least the problem is fixed.

Any more thoughts on the getting the pipes to expand to the bottom of the content (your guess on my intent was correct) At least at first attempts, removing my absolute positioning for those two divs makes the layout all off centered. (That was my original intent of using the absolute positioning ... to have the divs centered... maybe you have a better way to do this than what I did?
Jan 27 '11 #3
JKing
1,206 Recognized Expert Top Contributor
Indeed I do.

Centering can be achieved through the use of margins
Expand|Select|Wrap|Line Numbers
  1. #yourdiv {margin:0 auto;}
  2.  
This sets both the left and right margins to auto centering the div.

Do you want the pipes to stop before the footer?
Jan 27 '11 #4
Kristal Y
13 New Member
No, my original intent was for them to extend to the bottom of the page so it appears they are laying over the horizontal footer pipe.
Jan 28 '11 #5
Kristal Y
13 New Member
Hey, actually your new margin code to align my divs centered allowed me to figure out the rest of it, plus it's much simpler than the original method I found. However, now it doesn't seem to go up to the very top. Do you have a solution for that. I've updated the site now at the same address:

http://www.milwplumbing.net/test/index.html

Thanks again for all your help. I really appreciate it.
Jan 28 '11 #6
JKing
1,206 Recognized Expert Top Contributor
There is either a default margin or padding of about 10px on the body tag itself. You may want to consider using a css reset.
Jan 29 '11 #7
Kristal Y
13 New Member
I would agree and that makes sense. I'm sorry, I've never heard or resetting css before. I did some research and it seems to be controversial or at least I don't know how I would do it without messing everything else up. I tried putting padding and margins at 0 doesn't seem to help either so do you have more insight of what I need to do reset the css and then what else I need to do? Again, sorry if this is sort of basic.
Jan 29 '11 #8
JKing
1,206 Recognized Expert Top Contributor
From what I can see there is some padding or margin on the body tag.
This should fix it

Expand|Select|Wrap|Line Numbers
  1. body {margin:0;padding:0;}
  2.  
Jan 31 '11 #9
Kristal Y
13 New Member
Perfect! Thank you so much for your help. I think I should be good now.
Feb 1 '11 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1942
by: news.microsoft.com | last post by:
When I add to a listview, can the text I have be of different colors? For example, I want to add these two lines to my list view: "This is my program" "This is my other program" Can I add...
4
2752
by: VM | last post by:
Can I add text of different colors to a listview? Let's say I want to add, on one line, the text "This is my message" on my listview. Would it be possible to add this sentence to the listview...
4
10986
by: Jon Pope | last post by:
Many of my users have their sound cards muted, so I need some way of alerting them visually that a message box has appeared on a form that could be hidden beneath other open applications. I've...
2
1046
by: Trint Smith | last post by:
In the same dropdownlistbox, I need bold, italic and different colors in if possible...any help is appreciated. Thanks, Trint .Net programmer trintsmith@hotmail.com *** Sent via...
3
1273
by: Carlos Arra via .NET 247 | last post by:
In the same dropdownlistbox, I need bold, italic and different colors in if possible...any help is appreciated. -------------------------------- From: Carlos Arra -----------------------...
1
2905
by: sylvain | last post by:
Hi, I am implementing a ASP.Net form that have ValidationSummary. I want to have different color for an error message (red) and a warning message (blue). It seems that we cannot have multiple...
1
1536
by: VMI | last post by:
Can the Windows datagrid in VS.Net '05 have rows of different colors? I'm trying to build an Outlook-style scheduler and I need to emulate the Calendar so that the rows change colors based on the...
0
1298
by: Ken Lameki | last post by:
Hi guys, Needed to know how to display items on a listview and the items on the same listview appear in different colors, say e.g items that need immediate attention are flagged in red for...
4
4806
by: beena | last post by:
All, I'm new to the concept of automatic storage... I'm looking at the database setup by a vendor. I see few tablespaces showing up with automatic storage - Yes. Tablespace ID ...
1
5290
by: drappaport | last post by:
When my website is viewed in IE6 on a PC and IE 5.2 on a mac my images that I've used as links have an ugly blue border around them. When you click on them it changes to a purple border. I am trying...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5453
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.