0

I want the submit button to appear below the map. I can achieve this by deactivating float:left. How could I achieve this?

I tried overwriting the properties of <Span>.

<html>
  <head>
    <style>
      input[type=submit] {display: block}
  span {float:none}


</style>
{{ form.media }}


</head>
  <body>

And modifying the properties of the widget. Neither worked.

widgets = {
    'Location':  OsmPointWidget(attrs={
      'map_width': 300, 
      'map_height': 300,
      'style':'float:none'}),

enter image description here enter image description here

Ross Symonds
  • 690
  • 1
  • 8
  • 29

1 Answers1

1

Using custom css (in a custom css file or in the header), you can override the float:left by adding:

#id_Location_span_map {
  float: none!important;
}
Ben
  • 2,348
  • 1
  • 20
  • 23