Nov 22, 2009

Help Fix My Site's Css/layout Issues - Thanks for your time

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > CSS (Cascading Style Sheets)

Help Fix My Site's Css/layout Issues - Thanks for your time

gaea
The first issue has been resolved. Please goto Post #7 to see the current discussion.

This is in reference to: http://facesofwar.org/cms/

When you load the page up in Firefox it works fine. But when you use I.E. it creates a nasty line break after each of the spans containing a dividing line.

The relevant html is:
CODE
<span class="menuOuter"></span>
<span class="menuMain">Home&nbsp;&nbsp;&nbsp;&nbsp;Iraq&nbsp;&nbsp;&nbsp;&nbsp;Alt. Media&nbsp;&nbsp;&nbsp;&nbsp;Other&nbsp;&nbsp;&nbsp;&nbsp;Contact</span>
<span class="menuOuter"></span>


And the relevant css (for 1280 resolutions) is:
CODE
.menuOuter
{
    width: 100%;
    min-width:1050px;
    max-width:1050px;
    min-height:12px;
    max-height:12px;
    background-image: url('../images/1280/menubg.gif');
    background-repeat: repeat-x;
    display:block;
    padding:0;
}

.menuMain
{
    min-width:1050px;
    max-width:1050px;
    min-height:1em;
    display:block;
    background-color:#413d3c;
    text-align:center;
    color:#FFFFFF;
    font:2em Arial, Helvetica, sans-serif;
    font-weight:bold;
}


Thanks for your help ahead of time.

 

 

 


Comment/Reply (w/o sign-up)

BuffaloHELP
I recently fixed unwanted line break with H1 tag by using this as part of stylesheet.

CODE
span {
display: inline;
}


give it a try.

Comment/Reply (w/o sign-up)

gaea
Thanks for the suggestion, but it's a no go.

Comment/Reply (w/o sign-up)

BuffaloHELP
If SPAN didn't work, then you should go ahead with DIV instead.

Rather than using class to define the structure of your web page, use ID

HTML
<div id="mouseOver">
.
.
.
</div>


and of course your stylesheet should reflect accordingly.

If I was designing that navigation portion I would do something like this

HTML
<div id="navigation"><a class="menu" href="#">menu1</a> <a class="menu" href="#">menu2</a> etc


And define stylesheet as
CODE
#navigation {
border top and bottom with style
}
a.menu {
style, color etc
}
a.menu:hover{
style, color behavor when mouse is over
}

What you are trying to do is use the SPAN to draw the top borderline and another SPAN to draw the bottom line when stylesheet can define the whole process, including the hover instead of "mouseOver" effect.

 

 

 


Comment/Reply (w/o sign-up)

Shining
Thank you for that, BuffaloHELP! I now aswell know how to do it. I will try it out later, but from what I have seen, it looks pretty simple. The simplest things always make the most difference ;o

Comment/Reply (w/o sign-up)

gaea
Thanks for the info buffalo.

The only problem with using the default border styles is that my image was more complicated...but I replicated it by using nested spans, each with their own color solid border. Slightly convaluted, buy hey--it works.\

Good call on the menu classes as well.

I'm slowly ironing out the problems with this template. Your assistance is very much apprecaited (now it's time for a new problem topic ;P)

Comment/Reply (w/o sign-up)

gaea
Thanks again to everyone for your help, it's very much appreciated.

This particular issue pertains to: http://www.facesofwar.org/gallery.html

I'm using a fluid layout with separate style sheets for the following resolutions: 800x600, 1024x768, and 1280x960. All of the pages render correctly on Firefox and Safari. Unfortunately, for no reason that I can figure out, internet explorer refuses to restrict the width of the div tag containing text in the 800x600 and 1024x768 versions of the gallery page. (Yes, I know that i.e. doesn't natively support the css max-width/min-width commands, but I'm getting around it with a javascript). Furthermore, the image size for the thumbnails on that page isn't always correctly restricted either (but I verified that the correct style sheet *is* getting applied). The odd part is that it works 100% fine in the 1280x960 version. And, besides the differing measurements, all the style sheets are completely identical.

This one has me really stumped.

The 800x600 style sheet is at: http://www.facesofwar.org/templates/facesofwar/css/800.css
The 1024x768 style sheet is at: http://www.facesofwar.org/templates/facesofwar/css/1024.css
The 1280x960 style sheet is at: http://www.facesofwar.org/templates/facesofwar/css/1280.css

If anyone can help me figure out what the hell is going on I'd be *exceedingly* grateful.




Comment/Reply (w/o sign-up)

matak
This is one of you paragrafs i looked at 1024 version..

QUOTE
<p class="giDescription">
All images were taken by Coalition Forces, or families of the victims.
</p>
when i searched your CSS at /templates/facesofwar/css/1024.css i didn't find any CSS description for
giDescription class..

maybe that is the problem?!


Comment/Reply (w/o sign-up)

gaea
QUOTE(matak @ Jan 25 2007, 05:22 PM) *
This is one of you paragrafs i looked at 1024 version..

when i searched your CSS at /templates/facesofwar/css/1024.css i didn't find any CSS description for
giDescription class..

maybe that is the problem?!


The gallery page includes an embeded version of Menalto's Gallery2. As such, it loads its own stylesheets as well (http://www.facesofwar.org/gallery/modules/colorpack/packs/bluebottle/color.css and http://www.facesofwar.org/gallery/themes/matrix/theme.css).

However, the global stylesheets (for the site) are loaded afterwards...so they should take presidence.

Comment/Reply (w/o sign-up)

gaea
I narrowed the problem down to the javascript stylesheet chooser I was using. I changed to a different one, and now that issue is gone. Ofcourse there now are other problems, but c'est la vie.

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)


Searching Video's for fix, sites, css, layout, issues, time
See Also,
advertisement


Help Fix My Site's Css/layout Issues - Thanks for your time

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com