Advertisement:

Author Topic: "main" position function  (Read 1149 times)

ronnnie

  • Jr. Member
  • **
  • Posts: 89
"main" position function
« on: April 01, 2014, 09:48:26 pm »
hi, is there any way to create a function to move the div "main" from left to right Suguna page being viewed? i.e. item.php want to see in the "main" left and right index.php. thanks in advance!

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: "main" position function
« Reply #1 on: April 02, 2014, 07:28:56 pm »
wow..not sure I understand this, question, sounds like you want to show two dynamic pages at once-->that can be done with an iFrame.
perhaps a screen shot will work, if I don't understand.

ronnnie

  • Jr. Member
  • **
  • Posts: 89
Re: "main" position function
« Reply #2 on: April 03, 2014, 04:53:21 am »
sorry for the translations! what I want is that the div "main" appears in the right on index.php but in the left in item.php, the div is generated for header.php but if you put a style ie "<div id =" main "style = "float: right"> " its appears to the right on every page where it is displayed, I want to handle that side according to the page appears to be watching this. an example would be olx, in the main page de div"main" are in the rigth and in the item page are in the left. I make clear?

thanks

ronnnie

  • Jr. Member
  • **
  • Posts: 89
Re: "main" position function
« Reply #3 on: April 03, 2014, 05:02:34 am »
Forget the pictures, sorry

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: "main" position function
« Reply #4 on: April 03, 2014, 09:18:24 pm »
pull the div out of the header and add it to the top of the main page. then add it to item.php rename it another div class. you could stack the div with more classes (float right, float left) or inline style it. don't forget where it closes, may or may not be in main.php but in functions.php (for bender) if all the divs get whacked out of alignment.

ronnnie

  • Jr. Member
  • **
  • Posts: 89
Re: "main" position function
« Reply #5 on: April 05, 2014, 12:50:42 am »
Thanks Desing! work for me.