Web Design Forum: CSS Help - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CSS Help Site in dev.

#1 User is offline   welshhuw 

  • Web Guru
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 1,687
  • Joined: 21-October 08
  • Reputation: 19
  • Gender:Male
  • Location:South Wales, UK
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 02 September 2010 - 08:06 PM

Hi,

I am coding up a homepage at present and would like some advice.

http://www.huwsplace.co.uk/dev/

1.) How can I get the menu to be centered?
2.) How can I get the 3 'More Info' buttons to stay at the bottom of each of the 3 sections?

I've been trying different things but have not got very far!

Any tips would be great.

Thanks

Huw
0

#2 User is offline   Faevilangel 

  • Wordpress Ninja.....
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,166
  • Joined: 11-May 09
  • Reputation: 57
  • Gender:Male
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 02 September 2010 - 08:12 PM

1) Your menu div just has margin:0 auto;... Give it a width.
2) Give the buttons a class (as you will use the same thing 3 times, and absolute position it or use the css sticky footer method (google it).
0

#3 User is online   mteam 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,812
  • Joined: 07-November 09
  • Reputation: 243
  • Gender:Male
  • Location:Manchester
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 02 September 2010 - 08:31 PM

Are these columns going to be fixed height ?
0

#4 User is offline   asek 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 365
  • Joined: 25-May 10
  • Reputation: 38
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 02 September 2010 - 09:09 PM

The menu div, has a width of 900px, which is much bigger than the ul which is floated left, so it sticks to the left. I dont see any reason to float the ul, and I would get rid of the menu div, its uneeded.

If you don't know the heights of the boxes, its difficult, if you do, set the height of the box the same, then give the box div position:relative, then the buttons a position:absolute and bottom:0
1

#5 User is offline   Synjyn 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 209
  • Joined: 15-August 10
  • Reputation: 33
  • Gender:Male
  • Location:London
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 02 September 2010 - 11:25 PM

for the menu get rid of the float, set the width and auto the margins for left/right:

#menu ul {list-style:none outside none;margin:25px auto 0;padding:0;width:550px;}

For the more info as above and the best solution, put the text into divs, and give them all the same heights so the button sites below it. There are other ways i.e. setting margin top for each button but that can become messy if you change any text etc.

1

#6 User is offline   welshhuw 

  • Web Guru
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 1,687
  • Joined: 21-October 08
  • Reputation: 19
  • Gender:Male
  • Location:South Wales, UK
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 03 September 2010 - 07:29 AM

View PostSynjyn, on 02 September 2010 - 11:25 PM, said:

for the menu get rid of the float, set the width and auto the margins for left/right:

#menu ul {list-style:none outside none;margin:25px auto 0;padding:0;width:550px;}

For the more info as above and the best solution, put the text into divs, and give them all the same heights so the button sites below it. There are other ways i.e. setting margin top for each button but that can become messy if you change any text etc.


Thanks, one more question:

Around my hompage image (the beach scene), how can I fix the border issue? It seems to be thicker on the top and left...I want it be 5px all round.

Cheers

PS: You wont notice my updated changes to nav and buttons yet - im at work at the moment!
0

#7 User is offline   Synjyn 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 209
  • Joined: 15-August 10
  • Reputation: 33
  • Gender:Male
  • Location:London
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 03 September 2010 - 08:52 AM

View Postwelshhuw, on 03 September 2010 - 07:29 AM, said:

Thanks, one more question:

Around my hompage image (the beach scene), how can I fix the border issue? It seems to be thicker on the top and left...I want it be 5px all round.

Cheers

PS: You wont notice my updated changes to nav and buttons yet - im at work at the moment!


This should do it:

#slider-inner {border:5px solid #FFFFFF;height:197px;margin-left:auto;margin-right:auto;width:864px;}



1

#8 User is offline   welshhuw 

  • Web Guru
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 1,687
  • Joined: 21-October 08
  • Reputation: 19
  • Gender:Male
  • Location:South Wales, UK
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 03 September 2010 - 09:31 AM

Thanks excellent!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users