Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in HTML & CSS only
Search
Advanced Search
Forum
Groups
Today’s Posts
Calendar
Forum
Client side development
HTML & CSS
Announcement
Collapse
No announcement yet.
Alignment problem
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
cadfan
New to the CF scene
Join Date:
Jun 2008
Posts:
80
Share
Tweet
#1
Alignment problem
Apr 10, 2009, 10:44 AM
Could someone please have a look at a webpage i have been working on and tell me why i can't get the second and third cells to align with each other please. Thanks once again.
You can view the webpage
HERE!
Excavator
New to the CF scene
Join Date:
Dec 2006
Posts:
9955
Share
Tweet
#2
Apr 10, 2009, 11:23 AM
Hello again cadfan,
To put elements side by side you will need to float one. You should have a look at this float tutorial
http://www.w3schools.com/css/pr_class_float.asp
Your html has a bit of
divitis
And there is no width. To float things you usually need a width.
Also, have a look at this example -
http://nopeople.com/CSS/equal_length_columns/index.html
Validate often
DURING
development - Use it like a splelchecker
|
De
bug
during
De
velopment |
Write it for FireFox,
ignore IE
Use a DocType
|
Validate your markup
|
Validate your CSS
|
Why validating is good
|
Why tables are bad
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment