Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!


Sponsored Content

 

 
 

Photo
- - - - -

Re-naming Css Div Id's


  • Please log in to reply
4 replies to this topic

#1 oneofthe3lions

oneofthe3lions

    Paz

  • Active Members
  • PipPipPipPipPipPip
  • 702 posts
  • Location:Spain

Posted 14 July 2008 - 01:32 PM

I have been trying, for experimental reasons, to rename elements of the css but seem to be having problems.

For example I may wish to rename my 'footer' to 'bottom'.

I change each applicable class. i.e. I change all the footer, footer 0, footer p etc to the appropriate bottom, bottom 0, bottom p I have not removed the original footer codes, simply copied each and added as a different name.

i.e

CODE
#footer {
    clear: both;
    background: #ffffff url('images/footer.jpg') no-repeat;
    color: #555555;
    padding: 15px 0;
    text-align: center;
    font-size: 80%;
    padding: 30px 0 0 0;
    height: 50px;}
    
#bottom {
    clear: both;
    background: #ffffff url('images/footer.jpg') no-repeat;
    color: #555555;
    padding: 15px 0;
    text-align: center;
    font-size: 80%;
    padding: 30px 0 0 0;
    height: 50px;}

#footer a {
    color: #555555;
    font-weight: normal;}
    
#bottom a {
    color: #555555;
    font-weight: normal;}

#footer a:hover {
    color: #668ab6;
    font-weight: normal;}
    
#bottom a:hover {
    color: #668ab6;
    font-weight: normal;}

#footer p {
    margin: 0;
    padding: 3px 0;}
    
#bottom p {
    margin: 0;
    padding: 3px 0;}


but altho it looks fine initially on my pc, when it is uploaded live to the server the display gets totally thrown out with the 'footer', now 'bottom', elements, just displaying all over the place.

What am I missing? Does it have be be a recognised command or something and 'bottom' isnt recognised? I thought you could name elements whatever you wanted to? I Dont have to remove the 'footer' style classes do i? as they are not called upon etc.

Advise appreciated

#2 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 5,879 posts
  • Location:Blackpool UK

Posted 14 July 2008 - 02:15 PM

make sure you upload every file that has changed and clear the browser cache.

make sure the files in the same locations relative to each environment.

make the content expiry is the same on both servers.

#3 oneofthe3lions

oneofthe3lions

    Paz

  • Active Members
  • PipPipPipPipPipPip
  • 702 posts
  • Location:Spain

Posted 14 July 2008 - 02:46 PM

Dohh, have a feeling it really is that simple..

I was initially thinking 'well thats stateing the obvious Chrissy boy' but yeah, lol, not sure i did upload the updated style file along with the updated page.

whistling.gif

#4 1dmf

1dmf

    Keep Asking, Keep Questioning, Keep Learning

  • Active Members
  • PipPipPipPipPipPipPip
  • 2,154 posts
  • Location:Worthing - England

Posted 14 July 2008 - 03:16 PM

lol - the cache can catch you unawares sometimes if you're up working late, cursed the computer a few times before realising my school boy error!


#5 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 5,879 posts
  • Location:Blackpool UK

Posted 19 July 2008 - 03:37 PM

Been there, done it enough times myself.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users