• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

CSS problem designing a web page

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 105
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:


 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post the code here. Be sure to UseCodeTags <-- (that's a link)
 
Legend has it that if you rub the right tiny ad, a genie comes out.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic