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.
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. -
<style type="text/css">
-
<!--
-
body {
-
background-image: url();
-
background-color: #880000;
-
}
-
.italic {
-
font-size: 14px;
-
color: #000000;
-
font-family: Arial, Helvetica, sans-serif;
-
font-style: italic;
-
}
-
.link {
-
font-family: Arial, Helvetica, sans-serif;
-
font-size: 18px;
-
color: #FFFFFF;
-
}
-
.heading {
-
font-family: Arial, Helvetica, sans-serif;
-
font-size: 18px;
-
color: #8F0F11;
-
font-weight: bold;
-
font-style: italic;
-
}
-
.bodytext {
-
font-size: 14px;
-
font-family: Arial, Helvetica, sans-serif;
-
font-weight: normal;
-
color: #000000;
-
}
-
-->
-
</style>
-
<link rel="stylesheet" type="text/css" href="pro_dropdown_2/pro_dropdown_2/pro_dropdown_2.css" />
-
-
<script src="file:///Macintosh HD/Users/kristalyoung/Desktop/pro_dropdown_2/pro_dropdown_2/stuHover.js" type="text/javascript"></script>
-
<style type="text/css">
-
<!--
-
a:link {
-
color: #880000;
-
text-decoration: none;
-
}
-
a:visited {
-
text-decoration: none;
-
color: #880000;
-
}
-
a:hover {
-
text-decoration: underline;
-
color: #333333;
-
}
-
a:active {
-
text-decoration: none;
-
}
-
.style1 {color: #000000}
-
-->
-
</style>
-
Anything else you have set for links in your style sheet is being overridden by this
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?
JKing 1,206
Recognized Expert Top Contributor
Indeed I do.
Centering can be achieved through the use of margins -
#yourdiv {margin:0 auto;}
-
This sets both the left and right margins to auto centering the div.
Do you want the pipes to stop before the footer?
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.
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.
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.
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.
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 -
body {margin:0;padding:0;}
-
Perfect! Thank you so much for your help. I think I should be good now.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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...
|
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...
|
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...
|
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
-----------------------...
| |
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...
|
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...
|
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...
|
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 ...
|
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...
|
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,...
| |
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...
|
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...
|
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,...
|
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...
|
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...
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |