CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 14th, 2013, 08:54 AM
tradeweb tradeweb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 4 tradeweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 38 sec
Reputation Power: 0
CSS Class equal to another

Hi everyone,

I'm looking for some direction on this and hope that some of you will be able to help me out.

I have a web page that is built using a template that I don't have access to. The only thing I can manipulate is the CSS.

What I have is a class called "main" that houses the body of the page and then a "footer" class.

In the Main area, it's not possible for me to use basic HTML tags, but in the footer I can.

So what I did was hid the "main" class, but that doesn't move the footer to where I need it.

Can anyone think of a way around this? Basically what I need to do is fool a browser into thinking the "footer" class is the "main" class while hiding the original "main"....If that makes sense.

Reply With Quote
  #2  
Old February 14th, 2013, 09:08 AM
null.if.ied null.if.ied is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 26 null.if.ied User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 15 m
Reputation Power: 0
Well now I'm curious: why are you trying to fool the user in this way?

Reply With Quote
  #3  
Old February 14th, 2013, 09:28 AM
tradeweb tradeweb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 4 tradeweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 38 sec
Reputation Power: 0
Because I AM the user!

Reply With Quote
  #4  
Old February 14th, 2013, 12:28 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
as far as css (not the contents that are in it)
copy the style of main and assign them to footer and vice versa.
This will probably not have the desired effect since .main has different contents than .footer
__________________
PHP Tutorial

Reply With Quote
  #5  
Old February 14th, 2013, 01:25 PM
null.if.ied null.if.ied is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 26 null.if.ied User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 15 m
Reputation Power: 0
Quote:
Originally Posted by tradeweb
Because I AM the user!


So you want to fool yourself because you are you?

I was just interested in what the conditions/goals were that led you to this solution, seems like it may have been interesting for us to read...

aeternus' suggestion will give the footer the same styles as the main class, but will not hide the div as you desire.

To do that:
css Code:
Original - css Code
  1. .main { display: none; }


The reason for this is that visibility: hidden;, as I believe you're using now, hides the element but still loads it in the document: ergo it still takes up space. On the other hand, display: none; does not load the element in the document, so not only is it hidden but any space it may have occupied is also negated.

- Null

Reply With Quote
  #6  
Old February 14th, 2013, 02:44 PM
tradeweb tradeweb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 4 tradeweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 38 sec
Reputation Power: 0
Thank-you both for the feedback.

This may be the wrong way of doing things, but what I pieced together and given me the results I was looking for was this:

.footer { display:inline;}
.main {display:none;}

Even when "main" was hidden, it still seemed to be occupying the space and leaving a large blank area. The display:inline; seemed to moved the footer section to where the "main" section was formerly located.

Thank-you both.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Class equal to another

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap