Reply
div dont seem to be floating left or is being canceld or something HELP!
Old 08-07-2007, 10:14 AM div dont seem to be floating left or is being canceld or something HELP!
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
Offending facebook ads… so?
Posts: 6,089
Name: Dan
Location: Swindon
help!

my thing i fixed my navigation but now the main content div doenst seem to be floating left on all my pages (im using template)

look http://calm.dansgalaxy.co.uk/style.css http://calm.dansgalaxy.co.uk

Whats wrong how do i fix?!

TP for who ever helpS!
Thanks
Dan
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
When You Register, These Ads Go Away!
     
Old 08-07-2007, 10:28 AM Re: div dont seem to be floating left or is being canceld or something HELP!
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 386
Name: Jamie Lewis
Location: UK
Alter the width of .main. It isn't large enough to float the two side by side.

Jamie
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-07-2007, 10:32 AM Re: div dont seem to be floating left or is being canceld or something HELP!
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
Offending facebook ads… so?
Posts: 6,089
Name: Dan
Location: Swindon
ok i cant make the main wider so i made the content smaller and still no effect

the content is now 700px the menu is 150px the main is 891 and yet has had no effect what so ever HEEEELP

plz

Thxs
Dan
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 08-07-2007, 10:35 AM Re: div dont seem to be floating left or is being canceld or something HELP!
bas
Super Talker

Posts: 107
Name: Bas
Location: Belgium
Set the width of your .content div to 699px and it will work.
bas is offline
Reply With Quote
View Public Profile Visit bas's homepage!
 
Old 08-07-2007, 02:33 PM Re: div dont seem to be floating left or is being canceld or something HELP!
LadynRed's Avatar
Super Moderator

Posts: 6,399
Location: Tennessee
Actually reducing the left margin on #content will work too.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-07-2007, 04:54 PM Re: div dont seem to be floating left or is being canceld or something HELP!
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
Offending facebook ads… so?
Posts: 6,089
Name: Dan
Location: Swindon
ok i have another problem.

the image whihc i want to be in the bottom corner, is causeing probs.
because i want it to be in like the bottom right of the thing, but i cant do that without setting the height of the content div to soemthing other than auto, and its fine for most opages, but on ones like the about. which is a fill page of text it goes into the footer stuff :s

how can i make the content height be the same as the navi/latest news stuff which i have at the mo around 550px but if its more, to make it bigger..

or should just use over flow, and then it goes into scoll?

Thanks
Dan
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 08-08-2007, 03:59 AM Re: div dont seem to be floating left or is being canceld or something HELP!
bas
Super Talker

Posts: 107
Name: Bas
Location: Belgium
If you add a new div that contains the “left-navigation” and the “content”, but without the “footer”, you can add the background image to the new div, and then the image will always be just above the footer . (you will have to remove the .content height then)

Using overflow is a possibility to give your content the same height as your navi/latest news stuff, but keep in mind that people will have to double scroll!!! ( the full page + the content) Most of the visitors don’t like that.

Maybe using min-width is too a solution, but it’s not a generally supported issue I think.

Last edited by bas : 08-08-2007 at 04:02 AM.
bas is offline
Reply With Quote
View Public Profile Visit bas's homepage!
 
Old 08-08-2007, 07:52 AM Re: div dont seem to be floating left or is being canceld or something HELP!
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
Offending facebook ads… so?
Posts: 6,089
Name: Dan
Location: Swindon
thxs yea i tried the overflow ad it just looked crap.

at the moment im just basically getting the content text to be the same height as the page :P. its only very few pages where i have that much content.

ill have to look about that thing u said not quite sure what u mean ?

explain a bit more?

ta,
Dan
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 08-08-2007, 08:17 AM Re: div dont seem to be floating left or is being canceld or something HELP!
bas
Super Talker

Posts: 107
Name: Bas
Location: Belgium
Try this:
  • Remove the height-property in your .content style
  • Remove the background-property in your .content style
  • Place a new div in your mark-up , start it right before your “navi”-div, and end it right after your “brclear”-break So:
Code:
</div><!-- end quickmenu -->
 <div class=" tortoisediv">
<div class="navi">
And:
Code:
<br class="brclear" />
 </div>
<div class="footer">
  • Now Ad this code to your stylesheet:
Code:
.tortoisediv {
background:  url('http://calm.dansgalaxy.co.uk/images/trans_tortoise.png') bottom right no-repeat;
}
Now your contents height is auto, your footer doesn't hang in your menu and your turtoise-image is displayed in the bottom right corner of your content.

What I said about the “min-height”-property, it’s a CSS property wherein you can set a minimum height for your div, so your div can be higher (if there is more text), but not smaller than the defined minimum height. (but in IE6 and earlier it doesn’t work)

Last edited by bas : 08-08-2007 at 08:19 AM.
bas is offline
Reply With Quote
View Public Profile Visit bas's homepage!
 
Old 08-08-2007, 03:10 PM Re: div dont seem to be floating left or is being canceld or something HELP!
LadynRed's Avatar
Super Moderator

Posts: 6,399
Location: Tennessee
For IE 6 you have to declare a defined height.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-08-2007, 03:49 PM Re: div dont seem to be floating left or is being canceld or something HELP!
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
Offending facebook ads… so?
Posts: 6,089
Name: Dan
Location: Swindon
yea, erm your idea just went all weird bas.

i think once i got the site sorted i might post the template and see if some people might like to design some templates for the site. :-)

yea i noticed that, where u have to define a height, i have chosen to do it so it works,

on my template i added a var so when i have on the page it has <div class="content" style="<? $extra_content_style ?>" >

so for pages which are longer than 550px i just set height: auto on the inline CSS so it extends to how ever long it needs to be.

Dan
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to div dont seem to be floating left or is being canceld or something HELP!
 

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.17508 seconds with 13 queries