• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

CSS problem designing a web page

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to design a page by PHP.
Then I have problem in HTML and CSS
I put 5 buttons in a div but half of buttens are under the next div
how can I solve it?

Also there is a space between first red line and the next div
May I remove this space?
Thank you
 
Ranch Hand
Posts: 32
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please provide your code here so that i can have clear idea about the issue.

and here problem is position of your div, set div position to relative and your buttons position to absolute may this will help.


Example:


 
Marshal
Posts: 67313
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Absolute positioning will not help this and, in general, is not something that should be used except in special circumstances.

We need to see the CSS of the problem page to find out why things are acting strangely. By default, the parent container will stretch to the size of its children and not clip them.
 
F Gandom
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Absolute positioning will not help this and, in general, is not something that should be used except in special circumstances.

We need to see the CSS of the problem page to find out why things are acting strangely. By default, the parent container will stretch to the size of its children and not clip them.




Hi,
How can I sen cods?
Can you see my codes on my system by Skype or whatever something else?
 
Bear Bibeault
Marshal
Posts: 67313
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the code here. Be sure to UseCodeTags <-- (that's a link)
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!