Page 1 of 1

Why CSS loose its control !!?

Posted: Wed Jan 16, 2008 1:01 am
by amin30b
Hi
In my sample template there is some general links
on top of pages that have below css code :

Code: Select all

/* Top page action links and search form */
#header .actions {
background:transparent url(../img/bg/header_actions.jpg) no-repeat scroll left top;
height:86px;
left:0pt;
position:absolute;
text-align:center;
top:7px;
width:450px;
z-index:4;
}

/* Top page action links */
#header .actions ul {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin:0pt 25px 0pt -55pt;
padding:0pt;
}

#header .actions ul li {
  margin: 0;
  padding: 0;
  display: inline;
}

#header .actions ul li a {
  margin: 0 10px;
  
  font-size: 11px;
  text-decoration: none;  
  
  color: #FFF;
  border-bottom: 1px solid #73A8E0;
}

#header .actions ul li a:hover {
  color: #FFF;
  background-color: #3683D3;
  border-color: #FFF;
}


#header .actions ul li a.iconRSS {
  border: 0;
}

#header .actions ul li a.iconRSS span {
  border-width: 1px;
  border-style: solid;
  border-color: #3683D3 #3683D3 #73A8E0 #3683D3;

}

#header .actions ul li a:hover.iconRSS span {
  border-bottom-color: #FFF;
}
and this is related html code :

Code: Select all

  <div class="actions">
    <ul>
      <li><a href="" title="Lost?  Here's your map">Sitemap</a></li>
      <li><a href="" title="Get in touch with Marcus">Contact</a></li>
      <li><a href="" title="Subscribe to our Newsletter">Newsletter</a></li>
      <li><a href="" title="About the site and author, Marcus">About</a></li>
      <li><a href="" title="Subscribe to our RSS Feed" class="iconRSS"><span>Feed</span></a></li>
    </ul>
  </div>
When I change words to my native language (Persian)
all links position change on page , please have a view on
below screenshots :
Image

Image

Both of above pictures have same CSS code , so why I get different result !?

Re: Why CSS loose its control !!?

Posted: Wed Jan 16, 2008 9:04 am
by Dr.CSS
What does the source view of the effected part of the pages look like in comparison?...

Hard to make a call unless we can see the pages or the code generated when rendered...

Re: Why CSS loose its control !!?

Posted: Wed Jan 16, 2008 9:42 am
by amin30b
Hi Mark
Other parts like menu , footer , columns simple links and ... doesn`t have this problem .  Of course these links are part of header .
Sorry I don`t have online source but I have catched related structure from www.mygermancity.com .
Hopefully this help you .
TNX

Re: Why CSS loose its control !!?

Posted: Thu Jan 17, 2008 4:37 pm
by Dr.CSS
Sorry the reason I wanted a link was to try and see a live version of it, that way I could try and manipulate it in real time and see how it reacts to what I might do to it...