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 11-04-2009, 08:58 AM   #1 (permalink)
Registered User
 
tazinlwfl's Avatar
 
Join Date: Dec 2007
Location: Palm Beach Gardens, FL
Posts: 93
OS: Windows 7 Beta/RC, Vista SP1, XP Pro SP2/SP3

My System

Exclamation [SOLVED] Troubleshooting CSS

I'm building a new site - a redo of our current site
I have approval from the boss to go ahead with making the switch, but after doing some further clean-up, I've run into a problem.

http://www.nefcoinnovations.com/beta/home9.html
on this page, I've been playing with the Navigation and "New Web Features" (NWF) sections, trying to get them centered on the div
I got it
but...
on the NWF section, I was no longer able to include the text with the image in the <a> tag, because of the "display:inline" change I made to center the horizontal <ul> I'm using. The text was showing up beside the image rather than below. So I split them up. I put the text in a <div> below, made another <ul> which contained <span>s spaced the same way as the images above.
At this point everything was working great... in everything but IE

I'm using "display:inline-block" to line them up horizontally, and since THAT doesn't work right in IE, I used the workaround:
Code:
<!--[if IE]>
<style>
.web_feat_titles span {
	zoom: 1;
}
</style>
<![endif]-->
<!--[if lt IE 5.5000]>
<style>
.web_feat_titles span {
	height: 0;
	vertical-align: bottom;
}
</style>
<![endif]-->
I think this may be the problem
if you look at the page on IE, everything works fine
look at it in Firefox, Chrome, Safari, etc and the image highlight effect doesn't work as designed.

I removed the code, removed the new div completely, and played with the CSS and HTML a bit more and I cannot undo it! I cannot find the culprit...

I'm still in the process of cleaning up the code before I switch over to the live site, but can someone take a look at this problem for me? I really want to make sure this works as designed in all major browsers.

Also
I'm trying to use HTML 4.01 Strict, so w/e fix you offer, I need it to validate properly... :-)
__________________
Cuil^google
tazinlwfl 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 11-04-2009, 02:57 PM   #2 (permalink)
Registered User
 
tazinlwfl's Avatar
 
Join Date: Dec 2007
Location: Palm Beach Gardens, FL
Posts: 93
OS: Windows 7 Beta/RC, Vista SP1, XP Pro SP2/SP3

My System

Re: Troubleshooting CSS

I needed to edit
I'm finishing up the site, and moved home9.html to index.html
so you can just go to http://www.nefcoinnovations.com/beta
__________________
Cuil^google
tazinlwfl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 11-05-2009, 06:56 AM   #3 (permalink)
Registered User
 
tazinlwfl's Avatar
 
Join Date: Dec 2007
Location: Palm Beach Gardens, FL
Posts: 93
OS: Windows 7 Beta/RC, Vista SP1, XP Pro SP2/SP3

My System

Re: Troubleshooting CSS

Edit:
I keep coming up with things that could be the problem... (but I can't edit the previous posts)


I've played with the CSS and noticed that it seems to be the only highlighting the text - but theres no text there...
if I adjust the font height, it makes the highlight larger...

so the question seems to be now:
How do I make sure the image highlights, and not JUST the "text" (that isnt actually there)?
__________________
Cuil^google
tazinlwfl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 11-05-2009, 07:49 AM   #4 (permalink)
Registered User
 
tazinlwfl's Avatar
 
Join Date: Dec 2007
Location: Palm Beach Gardens, FL
Posts: 93
OS: Windows 7 Beta/RC, Vista SP1, XP Pro SP2/SP3

My System

Re: Troubleshooting CSS

OKAY!!!
I figured it out
I knew it had to do with the "display:block" --> "display:inline"
switched it to display:inline-block
I though it wouldn't work in IE, but it does...

edit: Here's my final code
Code:
/***********************************************/
/* new web features                            */
/***********************************************/
		#nwf_container {
	background-image: url('images/gradient.jpg');
	background-repeat:repeat-y;
	background-position:center;
	width:100%;
	height: 230px;
}

		#feat_header {
	background-image:url('images/nwf_shadow1.png');
	background-position: center;
	background-repeat:no-repeat;
	text-align:center;
	width:100%;
	margin:0px;
	padding:5px 0px 5px 0px;
	height: 30px;
	font: 1.5em "Trebuchet MS";
	color: #166671;	
}

		#features {
	margin-right:auto;
	margin-left:auto;
	width:100%;
	height:160px;
	padding:0px 0px 2px 0px;
	text-align:center;
	font: 1.375em "Trebuchet MS";
	color: #166671;	
}
		#feat_foot {
	background-image:url('images/nwf_shadow2.png');
	background-position: center;
	background-repeat:no-repeat;
	text-align:center;
	width:100%;
	height: 30px;
	margin:0px;
	padding:0px 0px 0px 0px;
	font: 1.25em "Trebuchet MS";
	color: #166671;	
}

		#features a{
	display:inline-block; /* this was the problem - made it inline-block  */
	border-width:1px;
	border-style:solid;
	border-color:transparent;
	color:#166671;
	margin:3px 0px 3px 0px;
	padding:3px 3px 3px 3px;
	background:none;
	font: 1em "Trebuchet MS";
	color: #166671;	
	text-decoration:none;
}

		#features a:hover{
	color:#fff;
	background-color:#166671;
	border-color: #fff;
}

		#features a:active{
	color:#166671;
	background-color: #fff;
	border-color:#166671;
}

		#features ul, #feat_foot ul{
	display:inline;  /* got to keep this as inline */
	list-style:none;
	margin: 5px 0px 5px 0px;
	padding: 2px 0px 2px 0px;
}

		#features li, #feat_foot li{
	display: inline; /* got to keep this as inline */
	background-image: none;
	margin: 0;
	padding: 2px 0px 2px 0px;
}

		.web_feat_titles{
	width:164px;
	padding:0px 10px 0px 10px;
	display:inline-block;
}
__________________
Cuil^google

Last edited by tazinlwfl; 11-05-2009 at 07:53 AM. Reason: added code
tazinlwfl 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:17 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