This is a discussion on "[SOLVED] Can anyone help me with some simple css?" within the Web Page Design section. This forum, and the thread "[SOLVED] Can anyone help me with some simple css? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Can anyone help me with some simple css?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] Can anyone help me with some simple css?
Hi guys i am trying to redesign my website in css, but i am having a few probles,
firstly i am using divs to layout my pages but im having trouble adding a boarder around the div, the code i have used is
but no border appears, am i doing something wrong? next, i cant seem to make text in a div appear verticaly central i can do horizontal center but not sure how to do vertical any help and advice would be great Thanks Luke |
|
#2
|
||||
|
||||
|
Re: Can anyone help me with some simple css?
Try this:
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
| The Following User Says Thank You to CloudedVision For This Useful Post: | ||
|
#3
|
||||
|
||||
|
Re: Can anyone help me with some simple css?
CV, I don't think vertical-align will solve the issue - vertical-align is for elements like images relative to the text within the same container.
If CV's border solution does not work, try a pixel value such as;
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#4
|
|||
|
|||
|
Re: Can anyone help me with some simple css?
hi cloudedvision,
thanks for your help the border worked fine however the vertical alignment didn't here is a link to the page (minus ther border code, not uploaded yet http://www.kernow-connect.com/newwebsite.html cheers Luke |
|
#5
|
||||
|
||||
|
Re: Can anyone help me with some simple css?
Quote:
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#6
|
|||
|
|||
|
Re: Can anyone help me with some simple css?
Hi Aso,
is it not possible to vertically align text within a AP div, should i add a top margain to center it that way? cheers for your time and help Luke |
|
#7
|
||||
|
||||
|
Re: Can anyone help me with some simple css?
what you could do is something like this:
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#8
|
||||
|
||||
|
Re: Can anyone help me with some simple css?
Hi Luke,
Yeah, vertical alignment is one of CSS's major let-downs (perhaps it's addressed in CSS3?) Anyway, if the height of div is fixed, you could add some top-padding. For example, if your div is 520px high, use;
You might want to add a bit more height and take off the padding to allow for the natural height of the text.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Last edited by Aso; Jul 14th, 2008 at 22:27. |
| The Following User Says Thank You to Aso For This Useful Post: | ||
|
#9
|
|||
|
|||
|
Re: Can anyone help me with some simple css?
Cheers guys all sorted, used Aso's method of adding padding, it seems to work ok,
appreciate your help Luke |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Simple list problem | CloudedVision | Web Page Design | 2 | Jun 26th, 2008 03:20 |
| [SOLVED] Simple Dynamic Links In PHP | c0un7z3r0 | PHP Forum | 6 | Jun 23rd, 2008 19:27 |
| [SOLVED] simple layout problem | saltedm8 | Web Page Design | 13 | May 2nd, 2008 19:02 |
| [SOLVED] simple div problem | hhelen | Web Page Design | 5 | Apr 4th, 2008 15:56 |
| [SOLVED] Simple Php Code Problem | longstand | PHP Forum | 3 | Oct 17th, 2007 22:02 |